Changed the Box destination to work via the Greenshot website, this solves issues with the embedded browser.

This commit is contained in:
Robin Krom 2021-03-20 19:49:19 +01:00
commit 48a197b942
No known key found for this signature in database
GPG key ID: BCC01364F1371490
3 changed files with 10 additions and 20 deletions

View file

@ -30,17 +30,9 @@ namespace GreenshotBoxPlugin {
_plugin = plugin;
}
public override string Designation {
get {
return "Box";
}
}
public override string Designation => "Box";
public override string Description {
get {
return Language.GetString("box", LangKey.upload_menu_item);
}
}
public override string Description => Language.GetString("box", LangKey.upload_menu_item);
public override Image DisplayIcon {
get {

View file

@ -74,9 +74,8 @@ namespace GreenshotBoxPlugin {
CloudServiceName = "Box",
ClientId = BoxCredentials.ClientId,
ClientSecret = BoxCredentials.ClientSecret,
RedirectUrl = "https://www.box.com/home/",
BrowserSize = new Size(1060, 600),
AuthorizeMode = OAuth2AuthorizeMode.EmbeddedBrowser,
RedirectUrl = "https://getgreenshot.org/authorize/box",
AuthorizeMode = OAuth2AuthorizeMode.JsonReceiver,
RefreshToken = Config.RefreshToken,
AccessToken = Config.AccessToken,
AccessTokenExpires = Config.AccessTokenExpires

View file

@ -44,14 +44,13 @@ namespace GreenshotDropboxPlugin {
GC.SuppressFinalize(this);
}
protected void Dispose(bool disposing) {
if (disposing) {
if (_itemPlugInConfig != null) {
private void Dispose(bool disposing)
{
if (!disposing) return;
if (_itemPlugInConfig == null) return;
_itemPlugInConfig.Dispose();
_itemPlugInConfig = null;
}
}
}
/// <summary>
/// Implementation of the IGreenshotPlugin.Initialize