mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Changed the Box destination to work via the Greenshot website, this solves issues with the embedded browser.
This commit is contained in:
parent
8659160748
commit
48a197b942
3 changed files with 10 additions and 20 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue