mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server Import/Set Location Changes
- when changing the location, the profile will be updated to use the new config files.
This commit is contained in:
parent
a2d5c92c00
commit
7015523837
12 changed files with 100 additions and 27 deletions
|
|
@ -796,7 +796,7 @@ namespace ServerManagerTool
|
|||
IsFolderPicker = true,
|
||||
Title = _globalizer.GetResourceString("ServerSettings_InstallServer_Title")
|
||||
};
|
||||
if (!String.IsNullOrWhiteSpace(Settings.InstallDirectory))
|
||||
if (!string.IsNullOrWhiteSpace(Settings.InstallDirectory))
|
||||
{
|
||||
dialog.InitialDirectory = Settings.InstallDirectory;
|
||||
}
|
||||
|
|
@ -804,7 +804,10 @@ namespace ServerManagerTool
|
|||
var result = dialog.ShowDialog(Window.GetWindow(this));
|
||||
if (result == CommonFileDialogResult.Ok)
|
||||
{
|
||||
Settings.ChangeInstallationFolder(dialog.FileName);
|
||||
Settings.ServerMap = string.Empty;
|
||||
Settings.ServerMapSaveFileName = string.Empty;
|
||||
|
||||
Settings.ChangeInstallationFolder(dialog.FileName, reloadConfigFiles: true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue