mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Added missing changes
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1711 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
bae0b6c34a
commit
3250eee533
2 changed files with 16 additions and 15 deletions
|
@ -45,25 +45,27 @@ namespace GreenshotJiraPlugin {
|
||||||
public OutputFormat UploadFormat;
|
public OutputFormat UploadFormat;
|
||||||
[IniProperty("UploadJpegQuality", Description="JPEG file save quality in %.", DefaultValue="80")]
|
[IniProperty("UploadJpegQuality", Description="JPEG file save quality in %.", DefaultValue="80")]
|
||||||
public int UploadJpegQuality;
|
public int UploadJpegQuality;
|
||||||
|
[IniProperty("UploadReduceColors", Description="Reduce color amount of the uploaded image to 256", DefaultValue="False")]
|
||||||
|
public bool UploadReduceColors;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A form for username/password
|
/// A form for username/password
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>bool true if OK was pressed, false if cancel</returns>
|
/// <returns>bool true if OK was pressed, false if cancel</returns>
|
||||||
public bool ShowConfigDialog() {
|
public bool ShowConfigDialog() {
|
||||||
SettingsForm settingsForm = new SettingsForm(this);
|
SettingsForm settingsForm = new SettingsForm(this);
|
||||||
settingsForm.Url = Url;
|
settingsForm.Url = Url;
|
||||||
settingsForm.UploadFormat = UploadFormat.ToString();
|
settingsForm.UploadFormat = UploadFormat.ToString();
|
||||||
DialogResult result = settingsForm.ShowDialog();
|
DialogResult result = settingsForm.ShowDialog();
|
||||||
if (result == DialogResult.OK) {
|
if (result == DialogResult.OK) {
|
||||||
if (!settingsForm.Url.Equals(Url) || !settingsForm.UploadFormat.Equals(UploadFormat.ToString())) {
|
if (!settingsForm.Url.Equals(Url) || !settingsForm.UploadFormat.Equals(UploadFormat.ToString())) {
|
||||||
Url = settingsForm.Url;
|
Url = settingsForm.Url;
|
||||||
UploadFormat = (OutputFormat)Enum.Parse(typeof(OutputFormat), settingsForm.UploadFormat.ToLower());
|
UploadFormat = (OutputFormat)Enum.Parse(typeof(OutputFormat), settingsForm.UploadFormat.ToLower());
|
||||||
}
|
}
|
||||||
IniConfig.Save();
|
IniConfig.Save();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,7 +240,6 @@
|
||||||
<Folder Include="Core" />
|
<Folder Include="Core" />
|
||||||
<Folder Include="Interfaces\Plugin" />
|
<Folder Include="Interfaces\Plugin" />
|
||||||
<Folder Include="Controls" />
|
<Folder Include="Controls" />
|
||||||
<Folder Include="Interop" />
|
|
||||||
<Folder Include="UnmanagedHelpers" />
|
<Folder Include="UnmanagedHelpers" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue