diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 6dfc64e47..33d9e2319 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -343,10 +343,14 @@ namespace Greenshot { if (conf.OutputDestinations.Count == 0) { conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION); } - BeginInvoke((MethodInvoker)delegate { - // Do after all plugins & finding the destination, otherwise they are missing! - InitializeQuickSettingsMenu(); - }); + if (conf.DisableQuickSettings) { + contextmenu_quicksettings.Visible = false; + } else { + BeginInvoke((MethodInvoker)delegate { + // Do after all plugins & finding the destination, otherwise they are missing! + InitializeQuickSettingsMenu(); + }); + } }); pluginInitThread.Name = "Initialize plug-ins"; pluginInitThread.IsBackground = true; @@ -896,6 +900,9 @@ namespace Greenshot { private void InitializeQuickSettingsMenu() { this.contextmenu_quicksettings.DropDownItems.Clear(); + if (conf.DisableQuickSettings) { + return; + } // For the capture mousecursor option ToolStripMenuSelectListItem captureMouseItem = new ToolStripMenuSelectListItem(); captureMouseItem.Text = Language.GetString("settings_capture_mousepointer"); diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 67545bdd8..440950dd1 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -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")] 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; [IniProperty("HideExpertSettings", Description = "Hide expert tab in the settings, can only be changed manually in this .ini", DefaultValue = "False")] public bool HideExpertSettings;