Don't show Steam settings in other builds

This commit is contained in:
Jaex 2015-09-10 00:23:52 +03:00
parent 37c340a2f0
commit cba52f00f4
2 changed files with 9 additions and 0 deletions

View file

@ -128,8 +128,10 @@ public ApplicationConfig()
[Category("Application"), DefaultValue(false), Description("Show only customized tasks in main window workflows.")]
public bool WorkflowsOnlyShowEdited { get; set; }
#if !STEAM
[Category("Application"), DefaultValue(true), Description("Automatically check updates.")]
public bool AutoCheckUpdate { get; set; }
#endif
[Category("Application"), DefaultValue(true), Description("Automatically expand capture menu when you open the tray menu.")]
public bool TrayAutoExpandCaptureMenu { get; set; }

View file

@ -76,7 +76,12 @@ private void LoadSettings()
cbStartWithWindows.Checked = ShortcutHelpers.CheckShortcut(Environment.SpecialFolder.Startup); //RegistryHelper.CheckStartWithWindows();
cbShellContextMenu.Checked = RegistryHelpers.CheckShellContextMenu();
cbSendToMenu.Checked = ShortcutHelpers.CheckShortcut(Environment.SpecialFolder.SendTo);
#if STEAM
cbSteamShowInApp.Checked = File.Exists(Helpers.GetAbsolutePath("Steam"));
#else
gbSteam.Visible = false;
#endif
// Paths
txtPersonalFolderPath.Text = Program.ReadPersonalPathConfig();
@ -359,6 +364,8 @@ private void cbSteamShowInApp_CheckedChanged(object sender, EventArgs e)
{
File.Delete(path);
}
MessageBox.Show("For settings to take effect ShareX need to be reopened from Steam.", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}