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;
|
||||
}
|
||||
|
||||
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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue