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; _plugin = plugin;
} }
public override string Designation { public override string Designation => "Box";
get {
return "Box";
}
}
public override string Description { public override string Description => Language.GetString("box", LangKey.upload_menu_item);
get {
return Language.GetString("box", LangKey.upload_menu_item);
}
}
public override Image DisplayIcon { public override Image DisplayIcon {
get { get {

View file

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

View file

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