Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-04-05 23:24:00 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-04-05 23:24:00 +0300
commit47777024363a2836e3ae203d7bb6995facac23a4 (patch)
tree86177e51c61f5528c551a91f7a8fc16dc2aeb830 /UVtools.WPF
parent824805a190f3023f3c42d19d50c41f18a83c751d (diff)
v2.8.2v2.8.2
* **Operations:** * Force validate all operations on execute if they haven't been before, if validation fails it will show the message error * Add some utility functions to ease layer and mat allocation in the file * Layer remove: Disallow to select and remove all layers * Tool - Edit print parameters: Retract speed wasn't propagating the value to normal layers * File formats: Better control, set and checking for null/empty thumbnails
Diffstat (limited to 'UVtools.WPF')
-rw-r--r--UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs4
-rw-r--r--UVtools.WPF/MainWindow.Information.cs2
-rw-r--r--UVtools.WPF/Program.cs9
-rw-r--r--UVtools.WPF/UVtools.WPF.csproj2
4 files changed, 9 insertions, 8 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs
index eaa58db..eaff935 100644
--- a/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs
+++ b/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs
@@ -103,9 +103,9 @@ namespace UVtools.WPF.Controls.Tools
TextBox tbScriptName = new()
{
IsReadOnly = true,
- Text = $"{Operation.ScriptGlobals.Script.Name} v{Operation.ScriptGlobals.Script.Version} by {Operation.ScriptGlobals.Script.Author}",
+ Text = $"{Operation.ScriptGlobals.Script.Name} | Version: {Operation.ScriptGlobals.Script.Version} by {Operation.ScriptGlobals.Script.Author}",
UseFloatingWatermark = true,
- Watermark = "Script name, Version and Author"
+ Watermark = "Script name, version and author"
};
TextBox tbScriptDescription = new()
diff --git a/UVtools.WPF/MainWindow.Information.cs b/UVtools.WPF/MainWindow.Information.cs
index 7e35a3c..3822b94 100644
--- a/UVtools.WPF/MainWindow.Information.cs
+++ b/UVtools.WPF/MainWindow.Information.cs
@@ -128,7 +128,7 @@ namespace UVtools.WPF
if (!IsFileLoaded) return;
var index = value - 1;
if (index >= SlicerFile.CreatedThumbnailsCount) return;
- if (SlicerFile.Thumbnails[index] is null) return;
+ if (SlicerFile.Thumbnails[index] is null || SlicerFile.Thumbnails[index].IsEmpty) return;
if (!RaiseAndSetIfChanged(ref _visibleThumbnailIndex, value)) return;
VisibleThumbnailImage = SlicerFile.Thumbnails[index].ToBitmap();
diff --git a/UVtools.WPF/Program.cs b/UVtools.WPF/Program.cs
index 57293c9..2261565 100644
--- a/UVtools.WPF/Program.cs
+++ b/UVtools.WPF/Program.cs
@@ -2,6 +2,7 @@
using System.Diagnostics;
using System.Runtime.ExceptionServices;
using Avalonia;
+using UVtools.WPF.Extensions;
namespace UVtools.WPF
{
@@ -31,12 +32,12 @@ namespace UVtools.WPF
}
- private static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e)
+ private static async void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Exception ex = (Exception)e.ExceptionObject;
ErrorLog.AppendLine("Fatal Non-UI Error", ex.ToString());
-
- /*try
+
+ try
{
string errorMsg = "An application error occurred. Please contact the administrator with the following information:\n\n" +
$"{ex}";
@@ -46,7 +47,7 @@ namespace UVtools.WPF
catch (Exception exception)
{
Debug.WriteLine(exception);
- }*/
+ }
}
// Avalonia configuration, don't remove; also used by visual designer.
diff --git a/UVtools.WPF/UVtools.WPF.csproj b/UVtools.WPF/UVtools.WPF.csproj
index 4e847ca..e6a7ed6 100644
--- a/UVtools.WPF/UVtools.WPF.csproj
+++ b/UVtools.WPF/UVtools.WPF.csproj
@@ -12,7 +12,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
- <Version>2.8.1</Version>
+ <Version>2.8.2</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">