mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-15 10:12:12 +12:00
Don't show Steam settings in other builds
This commit is contained in:
parent
37c340a2f0
commit
cba52f00f4
2 changed files with 9 additions and 0 deletions
|
@ -128,8 +128,10 @@ public ApplicationConfig()
|
||||||
[Category("Application"), DefaultValue(false), Description("Show only customized tasks in main window workflows.")]
|
[Category("Application"), DefaultValue(false), Description("Show only customized tasks in main window workflows.")]
|
||||||
public bool WorkflowsOnlyShowEdited { get; set; }
|
public bool WorkflowsOnlyShowEdited { get; set; }
|
||||||
|
|
||||||
|
#if !STEAM
|
||||||
[Category("Application"), DefaultValue(true), Description("Automatically check updates.")]
|
[Category("Application"), DefaultValue(true), Description("Automatically check updates.")]
|
||||||
public bool AutoCheckUpdate { get; set; }
|
public bool AutoCheckUpdate { get; set; }
|
||||||
|
#endif
|
||||||
|
|
||||||
[Category("Application"), DefaultValue(true), Description("Automatically expand capture menu when you open the tray menu.")]
|
[Category("Application"), DefaultValue(true), Description("Automatically expand capture menu when you open the tray menu.")]
|
||||||
public bool TrayAutoExpandCaptureMenu { get; set; }
|
public bool TrayAutoExpandCaptureMenu { get; set; }
|
||||||
|
|
|
@ -76,7 +76,12 @@ private void LoadSettings()
|
||||||
cbStartWithWindows.Checked = ShortcutHelpers.CheckShortcut(Environment.SpecialFolder.Startup); //RegistryHelper.CheckStartWithWindows();
|
cbStartWithWindows.Checked = ShortcutHelpers.CheckShortcut(Environment.SpecialFolder.Startup); //RegistryHelper.CheckStartWithWindows();
|
||||||
cbShellContextMenu.Checked = RegistryHelpers.CheckShellContextMenu();
|
cbShellContextMenu.Checked = RegistryHelpers.CheckShellContextMenu();
|
||||||
cbSendToMenu.Checked = ShortcutHelpers.CheckShortcut(Environment.SpecialFolder.SendTo);
|
cbSendToMenu.Checked = ShortcutHelpers.CheckShortcut(Environment.SpecialFolder.SendTo);
|
||||||
|
|
||||||
|
#if STEAM
|
||||||
cbSteamShowInApp.Checked = File.Exists(Helpers.GetAbsolutePath("Steam"));
|
cbSteamShowInApp.Checked = File.Exists(Helpers.GetAbsolutePath("Steam"));
|
||||||
|
#else
|
||||||
|
gbSteam.Visible = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Paths
|
// Paths
|
||||||
txtPersonalFolderPath.Text = Program.ReadPersonalPathConfig();
|
txtPersonalFolderPath.Text = Program.ReadPersonalPathConfig();
|
||||||
|
@ -359,6 +364,8 @@ private void cbSteamShowInApp_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
File.Delete(path);
|
File.Delete(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MessageBox.Show("For settings to take effect ShareX need to be reopened from Steam.", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue