From 826e6823a19db3e3002da641ecae699ff27bde0a Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Thu, 8 Jun 2023 19:21:12 +0200 Subject: [PATCH] Ui Improvements --- .github/workflows/dotnet-framework.yml | 19 ++----------------- WeeXnes/App.xaml.cs | 3 +++ WeeXnes/Core/Global.cs | 2 +- WeeXnes/Views/KeyManager/KeyManagerView.xaml | 9 +++++---- WeeXnes/WeeXnes.csproj | 2 +- 5 files changed, 12 insertions(+), 23 deletions(-) diff --git a/.github/workflows/dotnet-framework.yml b/.github/workflows/dotnet-framework.yml index 12e847f..9b7f3a3 100644 --- a/.github/workflows/dotnet-framework.yml +++ b/.github/workflows/dotnet-framework.yml @@ -30,17 +30,6 @@ jobs: run: | msbuild.exe WeeXnes.sln /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release" - - name: List Folder 1 - run: dir D:\a\WeeXnesSuite\WeeXnesSuite\WeeXnes\bin\Release\ - - name: List Folder 2 - run: dir D:\a\WeeXnesSuite\WeeXnesSuite\WeeXnes_UAC\bin\Release\ - - name: List Folder 3 - run: dir D:\a\WeeXnesSuite\WeeXnesSuite\Autostart\bin\Release\ - - name: List Folder 4 - run: dir D:\a\WeeXnesSuite\WeeXnesSuite\Update\bin\Release\ - - name: List Folder 5 - run: dir D:\a\WeeXnesSuite\WeeXnesSuite\Release_Tool\bin\Release\ - - name: Format Xaml to XML run: (gc Weexnes\WeeXnes.csproj) -replace ' ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"', '' | Out-File -encoding ASCII formatted.csproj @@ -68,12 +57,8 @@ jobs: shell: pwsh - - name: Check for Zip - run: dir - - - - name: release + - name: Create Release uses: actions/create-release@v1 id: create_release with: @@ -83,7 +68,7 @@ jobs: tag_name: ${{ steps.get_version.outputs.version }} env: GITHUB_TOKEN: ${{ github.token }} - - name: upload windows artifact + - name: Upload windows artifact uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ github.token }} diff --git a/WeeXnes/App.xaml.cs b/WeeXnes/App.xaml.cs index c13023a..c6d66c6 100644 --- a/WeeXnes/App.xaml.cs +++ b/WeeXnes/App.xaml.cs @@ -28,8 +28,11 @@ namespace WeeXnes private static void GlobalUnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e) { Exception ex = (Exception)e.ExceptionObject; + DateTime currentDateTime = DateTime.Now; + string formattedDateTime = currentDateTime.ToString("dddd, dd MMMM yyyy HH:mm:ss"); using (StreamWriter writer = new StreamWriter("error_log.txt")) { + writer.WriteLine(formattedDateTime); writer.WriteLine(ex.ToString()); } new FluentMessageBox(ex.Message).ShowDialog(); diff --git a/WeeXnes/Core/Global.cs b/WeeXnes/Core/Global.cs index fb42f6b..f476e7b 100644 --- a/WeeXnes/Core/Global.cs +++ b/WeeXnes/Core/Global.cs @@ -8,7 +8,7 @@ namespace WeeXnes.Core { public class Information { - public const string Version = "4.3.4"; + public const string Version = "4.3.5"; public const string EncryptionHash = "8zf5#RdyQ]$4x4_"; public const string ApiUrl = "https://api.github.com/repos/weexnes/weexnessuite/releases/latest"; } diff --git a/WeeXnes/Views/KeyManager/KeyManagerView.xaml b/WeeXnes/Views/KeyManager/KeyManagerView.xaml index 8bd61df..d74c9c3 100644 --- a/WeeXnes/Views/KeyManager/KeyManagerView.xaml +++ b/WeeXnes/Views/KeyManager/KeyManagerView.xaml @@ -4,6 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:WeeXnes.Views.KeyManager" + xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" mc:Ignorable="d" Title="KeyManagerView" Height="Auto" Width="Auto" Loaded="KeyManagerView_OnLoaded"> @@ -57,14 +58,14 @@ - - + + Name="tb_keyvalue" PlaceholderText="Key"/>