PowerControl: Allow to set Autostart Profile Settings

This commit is contained in:
Kamil Trzciński 2023-04-01 13:41:53 +02:00 committed by Kamil Trzcinski
parent acd33f2cb2
commit cf0de0ad8f
4 changed files with 51 additions and 4 deletions

View file

@ -26,10 +26,10 @@ namespace PowerControl.Helper
public String ProfileName { get; }
public ProfileSettings(string profileName) : base("PersistentSettings")
public ProfileSettings(string prefix, string profileName) : base("PersistentSettings")
{
this.ProfileName = profileName;
this.ConfigFile = Path.Combine(UserProfilesPath, String.Format("PowerControl.Process.{0}.ini", profileName));
this.ConfigFile = Path.Combine(UserProfilesPath, String.Format("{0}.{1}.ini", prefix, profileName));
this.SettingChanging += delegate { };
this.SettingChanged += delegate { };