mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -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) {
|
||||
conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION);
|
||||
}
|
||||
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");
|
||||
|
|
|
@ -161,6 +161,8 @@ 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("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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue