mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Saving settings before exiting, and avoid early return
This commit is contained in:
@@ -312,11 +312,7 @@ namespace mRemoteNG.App
|
||||
// Handle custom connection file location
|
||||
Settings.Default.CustomConsPath = GetCustomConsPath(ConsParam);
|
||||
if (Settings.Default.CustomConsPath != null)
|
||||
{
|
||||
Settings.Default.LoadConsFromCustomLocation = true;
|
||||
Settings.Default.Save();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ResetPosParam))
|
||||
{
|
||||
@@ -340,6 +336,8 @@ namespace mRemoteNG.App
|
||||
{
|
||||
Settings.Default.ResetToolbars = true;
|
||||
}
|
||||
|
||||
Settings.Default.Save();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user