mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-14 19:05:48 +12:00
Skip checked event while updating cbStartWithWindows.Checked
This commit is contained in:
parent
1d08ad9164
commit
19705e502a
|
@ -250,6 +250,8 @@ private void ChangeLanguage(SupportedLanguage language)
|
||||||
|
|
||||||
private void UpdateStartWithWindows()
|
private void UpdateStartWithWindows()
|
||||||
{
|
{
|
||||||
|
ready = false;
|
||||||
|
|
||||||
StartupTaskState state = StartupManagerFactory.StartupManager.State;
|
StartupTaskState state = StartupManagerFactory.StartupManager.State;
|
||||||
cbStartWithWindows.Checked = state == StartupTaskState.Enabled;
|
cbStartWithWindows.Checked = state == StartupTaskState.Enabled;
|
||||||
if (state == StartupTaskState.DisabledByUser)
|
if (state == StartupTaskState.DisabledByUser)
|
||||||
|
@ -257,6 +259,8 @@ private void UpdateStartWithWindows()
|
||||||
cbStartWithWindows.Enabled = false;
|
cbStartWithWindows.Enabled = false;
|
||||||
lblWindowsStoreStartupStatus.Text = Resources.ApplicationSettingsForm_lblWindowsStoreStartupStatus_DisabledByUser;
|
lblWindowsStoreStartupStatus.Text = Resources.ApplicationSettingsForm_lblWindowsStoreStartupStatus_DisabledByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ready = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateProxyControls()
|
private void UpdateProxyControls()
|
||||||
|
|
Loading…
Reference in a new issue