diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-11-05 21:27:44 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-11-05 21:27:44 +0300 |
commit | 5da3c7e173094666cd900b3ee09fe3dd93d97985 (patch) | |
tree | 9cefc79bf4e48c44721f09475237239a38bb005e /UVtools.WPF/UserSettings.cs | |
parent | 50ce7d8f12cdd3e4514b409dcc3718ce8897d1a5 (diff) |
v1.1.3v1.1.3
* (Add) Auto-updater: When a new version is detected UVtools still show the same green button at top,
on click, it will prompt for auto or manual update.
On Linux and Mac the script will kill all UVtools instances and auto-upgrade.
On Windows the user must close all instances and continue with the shown MSI installation
* (Add) Tool profiles: Create and remove named presets for some tools
* (Add) Event handler for handling non-UI thread exceptions
* (Fix) Mac: File - Open in a new window was not working
* (Fix) Tool - Rotate: Allow negative angles
* (Fix) Tool - Rotate: The operation was inverting the angle
* (Fix) Tools: Select normal layers can crash the program with small files with low layer count, eg: 3 layers total
Diffstat (limited to 'UVtools.WPF/UserSettings.cs')
-rw-r--r-- | UVtools.WPF/UserSettings.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/UVtools.WPF/UserSettings.cs b/UVtools.WPF/UserSettings.cs index c6dc4bb..28fbe6e 100644 --- a/UVtools.WPF/UserSettings.cs +++ b/UVtools.WPF/UserSettings.cs @@ -9,7 +9,6 @@ using System; using System.Diagnostics; using System.IO; -using System.Runtime.InteropServices; using System.Xml.Serialization; using Avalonia.Media; using JetBrains.Annotations; @@ -951,7 +950,16 @@ namespace UVtools.WPF get { var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), About.Software); - Directory.CreateDirectory(path); + try + { + if (!Directory.Exists(path)) + Directory.CreateDirectory(path); + } + catch (Exception e) + { + Debug.WriteLine(e); + } + return path; } } |