mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 03:30:02 -07:00
Enhancement for feature request #3542092, added DisableQuickSettings to the core settings.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1946 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
cfb9b91e5c
commit
a2f51c9758
2 changed files with 14 additions and 5 deletions
|
@ -343,10 +343,14 @@ namespace Greenshot {
|
||||||
if (conf.OutputDestinations.Count == 0) {
|
if (conf.OutputDestinations.Count == 0) {
|
||||||
conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION);
|
conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION);
|
||||||
}
|
}
|
||||||
BeginInvoke((MethodInvoker)delegate {
|
if (conf.DisableQuickSettings) {
|
||||||
// Do after all plugins & finding the destination, otherwise they are missing!
|
contextmenu_quicksettings.Visible = false;
|
||||||
InitializeQuickSettingsMenu();
|
} else {
|
||||||
});
|
BeginInvoke((MethodInvoker)delegate {
|
||||||
|
// Do after all plugins & finding the destination, otherwise they are missing!
|
||||||
|
InitializeQuickSettingsMenu();
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
pluginInitThread.Name = "Initialize plug-ins";
|
pluginInitThread.Name = "Initialize plug-ins";
|
||||||
pluginInitThread.IsBackground = true;
|
pluginInitThread.IsBackground = true;
|
||||||
|
@ -896,6 +900,9 @@ namespace Greenshot {
|
||||||
private void InitializeQuickSettingsMenu() {
|
private void InitializeQuickSettingsMenu() {
|
||||||
this.contextmenu_quicksettings.DropDownItems.Clear();
|
this.contextmenu_quicksettings.DropDownItems.Clear();
|
||||||
|
|
||||||
|
if (conf.DisableQuickSettings) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// For the capture mousecursor option
|
// For the capture mousecursor option
|
||||||
ToolStripMenuSelectListItem captureMouseItem = new ToolStripMenuSelectListItem();
|
ToolStripMenuSelectListItem captureMouseItem = new ToolStripMenuSelectListItem();
|
||||||
captureMouseItem.Text = Language.GetString("settings_capture_mousepointer");
|
captureMouseItem.Text = Language.GetString("settings_capture_mousepointer");
|
||||||
|
|
|
@ -161,7 +161,9 @@ namespace GreenshotPlugin.Core {
|
||||||
|
|
||||||
[IniProperty("DisableSettings", Description = "Enable/disable the access to the settings, can only be changed manually in this .ini", DefaultValue = "False")]
|
[IniProperty("DisableSettings", Description = "Enable/disable the access to the settings, can only be changed manually in this .ini", DefaultValue = "False")]
|
||||||
public bool DisableSettings;
|
public bool DisableSettings;
|
||||||
[IniProperty("DisableTrayicon", Description = "Disable the trayicon, can only be changed manually in this .ini", DefaultValue = "False")]
|
[IniProperty("DisableQuickSettings", Description = "Enable/disable the access to the quick settings, can only be changed manually in this .ini", DefaultValue = "False")]
|
||||||
|
public bool DisableQuickSettings;
|
||||||
|
[IniProperty("DisableTrayicon", Description = "Disable the trayicon, can only be changed manually in this .ini", DefaultValue = "False")]
|
||||||
public bool HideTrayicon;
|
public bool HideTrayicon;
|
||||||
[IniProperty("HideExpertSettings", Description = "Hide expert tab in the settings, can only be changed manually in this .ini", DefaultValue = "False")]
|
[IniProperty("HideExpertSettings", Description = "Hide expert tab in the settings, can only be changed manually in this .ini", DefaultValue = "False")]
|
||||||
public bool HideExpertSettings;
|
public bool HideExpertSettings;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue