mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Merge branch 'main' into integrations-upgrade
This commit is contained in:
commit
c9dabd6b4f
@ -47,6 +47,17 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
if (!String.IsNullOrEmpty(message))
|
if (!String.IsNullOrEmpty(message))
|
||||||
Frontend.ShowMessageBox($"{message}\n\n{ex.Message}", System.Windows.MessageBoxImage.Warning);
|
Frontend.ShowMessageBox($"{message}\n\n{ex.Message}", System.Windows.MessageBoxImage.Warning);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// Create a backup of loaded file
|
||||||
|
File.Copy(FileLocation, FileLocation + ".bak", true);
|
||||||
|
}
|
||||||
|
catch (Exception copyEx)
|
||||||
|
{
|
||||||
|
App.Logger.WriteLine(LOG_IDENT, $"Failed to create backup file: {FileLocation}.bak");
|
||||||
|
App.Logger.WriteException(LOG_IDENT, copyEx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Save();
|
Save();
|
||||||
|
Loading…
Reference in New Issue
Block a user