mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Cleanup
This commit is contained in:
@@ -355,7 +355,7 @@ namespace mRemoteNG.App
|
||||
|
||||
try
|
||||
{
|
||||
string backupFileName = string.Format(Settings.Default.BackupFileNameFormat, fileName, DateTime.UtcNow);
|
||||
var backupFileName = string.Format(Settings.Default.BackupFileNameFormat, fileName, DateTime.UtcNow);
|
||||
File.Copy(fileName, backupFileName);
|
||||
PruneBackupFiles(fileName);
|
||||
}
|
||||
@@ -489,7 +489,7 @@ namespace mRemoteNG.App
|
||||
{
|
||||
SqlConnProvider?.Disable();
|
||||
|
||||
using (SaveFileDialog saveFileDialog = new SaveFileDialog())
|
||||
using (var saveFileDialog = new SaveFileDialog())
|
||||
{
|
||||
saveFileDialog.CheckPathExists = true;
|
||||
saveFileDialog.InitialDirectory = ConnectionsFileInfo.DefaultConnectionsPath;
|
||||
|
||||
Reference in New Issue
Block a user