mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Added reset button to the Data Directory Location.
This commit is contained in:
parent
cd801a2334
commit
cd2dbe9628
20 changed files with 301 additions and 75 deletions
|
|
@ -251,13 +251,6 @@ namespace ServerManagerTool
|
|||
PlayerListWindow.CloseAllWindows();
|
||||
ServerMonitorWindow.CloseAllWindows();
|
||||
this.versionChecker.DisposeAsync().DoNotWait();
|
||||
|
||||
var installFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||
var backupFolder = IOUtils.NormalizePath(string.IsNullOrWhiteSpace(Config.Default.BackupPath)
|
||||
? Path.Combine(Config.Default.DataDir, Config.Default.BackupDir)
|
||||
: Path.Combine(Config.Default.BackupPath));
|
||||
SettingsUtils.BackupUserConfigSettings(Config.Default, "userconfig.json", installFolder, backupFolder);
|
||||
SettingsUtils.BackupUserConfigSettings(CommonConfig.Default, "commonconfig.json", installFolder, backupFolder);
|
||||
}
|
||||
|
||||
private void ResourceDictionaryChangedEvent(object source, ResourceDictionaryChangedEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue