diff options
| author | Sarah B <git@sarahduck.ca> | 2023-12-24 21:45:26 -0800 |
|---|---|---|
| committer | Sarah B <git@sarahduck.ca> | 2023-12-24 21:45:26 -0800 |
| commit | a4874e186e24ce1736bfbda1deb0227597d2d690 (patch) | |
| tree | 9bf11b6521237547c860cbc775110a49ef938b30 /ConfigFile.cs | |
| parent | 0206e04e0a3542b8f0fc97996f1d885f7604a6fa (diff) | |
Added seperate nekoname
Diffstat (limited to 'ConfigFile.cs')
| -rw-r--r-- | ConfigFile.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigFile.cs b/ConfigFile.cs index e0f1293..cfe77c9 100644 --- a/ConfigFile.cs +++ b/ConfigFile.cs @@ -15,6 +15,7 @@ class ConfigFile Console.WriteLine("Config file does not exist, creating one."); File.WriteAllText(Path, TopLine); OptionChanged = true; + SaveFileDelayed(3000); return; } @@ -29,6 +30,12 @@ class ConfigFile } } + public async void SaveFileDelayed(int delayInMilliseconds) + { + await Task.Delay(delayInMilliseconds); + SaveFile(); + } + public void SaveFile() { if (!OptionChanged) return; |
