mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
refactor: clean temp config file when exit
This commit is contained in:
@@ -283,8 +283,11 @@ namespace Netch.Forms
|
||||
|
||||
Configuration.Save();
|
||||
|
||||
if (File.Exists("data\\last.json"))
|
||||
File.Delete("data\\last.json");
|
||||
foreach (var file in new[] {"data\\last.json", "data\\privoxy.conf"})
|
||||
{
|
||||
if (File.Exists(file))
|
||||
File.Delete(file);
|
||||
}
|
||||
|
||||
State = State.Terminating;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user