mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 00:53:51 -07:00
Fixes for the Startup-Helper, if Greenshot is already in the startup-folder we check & disable the checkbox.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2268 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
f006718d2a
commit
396455875f
2 changed files with 57 additions and 2 deletions
|
@ -358,7 +358,10 @@ namespace Greenshot {
|
|||
// Remove runUser if we already have a run under all
|
||||
StartupHelper.deleteRunUser();
|
||||
checkbox_autostartshortcut.Enabled = StartupHelper.canWriteRunAll();
|
||||
checkbox_autostartshortcut.Checked = StartupHelper.hasRunAll();
|
||||
checkbox_autostartshortcut.Checked = true; // We already checked this
|
||||
} else if (StartupHelper.IsInStartupFolder()) {
|
||||
checkbox_autostartshortcut.Enabled = false;
|
||||
checkbox_autostartshortcut.Checked = true; // We already checked this
|
||||
} else {
|
||||
// No run for all, enable the checkbox and set it to true if the current user has a key
|
||||
checkbox_autostartshortcut.Enabled = StartupHelper.canWriteRunUser();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue