mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-03 15:20:05 +01:00
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System.ComponentModel;
|
|
using System.Configuration;
|
|
|
|
namespace SteamController
|
|
{
|
|
[Category("Settings")]
|
|
[TypeConverter(typeof(ExpandableObjectConverter))]
|
|
internal sealed partial class Settings : ApplicationSettingsBase
|
|
{
|
|
public static readonly Settings Default = (Settings)Synchronized(new Settings());
|
|
|
|
public Settings()
|
|
{
|
|
PropertyChanged += delegate
|
|
{
|
|
Save();
|
|
};
|
|
}
|
|
|
|
[UserScopedSetting]
|
|
[DefaultSettingValue("False")]
|
|
[BrowsableAttribute(false)]
|
|
public bool EnableSteamDetection
|
|
{
|
|
get { return ((bool)(this["EnableSteamDetection"])); }
|
|
set { this["EnableSteamDetection"] = value; }
|
|
}
|
|
|
|
[ApplicationScopedSetting]
|
|
[DefaultSettingValue("Desktop")]
|
|
[BrowsableAttribute(false)]
|
|
public string StartupProfile
|
|
{
|
|
get { return ((string)(this["StartupProfile"])); }
|
|
set { this["StartupProfile"] = value; }
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
}
|