mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Add some workarounds for clean environment.
This commit is contained in:
@@ -9,20 +9,21 @@ namespace WinAlfred.Helper
|
||||
public class Settings
|
||||
{
|
||||
private string configPath = Directory.GetCurrentDirectory() + "\\config.ini";
|
||||
private static readonly Settings settings = new Settings();
|
||||
IniParser parser = new IniParser("config.ini");
|
||||
private static readonly Settings settings = new Settings();
|
||||
IniParser parser;
|
||||
|
||||
public string Theme { get; set; }
|
||||
public bool ReplaceWinR { get; set; }
|
||||
|
||||
private Settings()
|
||||
{
|
||||
{
|
||||
if (!File.Exists(configPath)) File.Create(configPath);
|
||||
parser = new IniParser(configPath);
|
||||
LoadSettings();
|
||||
}
|
||||
|
||||
private void LoadSettings()
|
||||
{
|
||||
if (!File.Exists(configPath)) File.Create(configPath);
|
||||
Theme = parser.GetSetting("ui", "theme");
|
||||
|
||||
string replaceWinRStr = parser.GetSetting("hotkey", "replaceWinR");
|
||||
|
||||
Reference in New Issue
Block a user