UX improvements

This commit is contained in:
WeeXnes 2023-06-08 21:59:40 +02:00
parent 2f4ac2f00d
commit 89d3bd8409
5 changed files with 8 additions and 4 deletions

View file

@ -8,7 +8,7 @@ namespace WeeXnes.Core
{ {
public class Information public class Information
{ {
public const string Version = "4.4.0"; public const string Version = "4.4.1";
public const string EncryptionHash = "8zf5#RdyQ]$4x4_"; public const string EncryptionHash = "8zf5#RdyQ]$4x4_";
public const string ApiUrl = "https://api.github.com/repos/weexnes/weexnessuite/releases/latest"; public const string ApiUrl = "https://api.github.com/repos/weexnes/weexnessuite/releases/latest";
} }

View file

@ -56,6 +56,7 @@ namespace WeeXnes.Views.PasswordGenerator
} }
SavePasswordView.GeneratedPassword = generatedPassword; SavePasswordView.GeneratedPassword = generatedPassword;
SavePasswordView._prevPage = this;
NavigationService.Navigate(new Uri("/Views/PasswordGenerator/SavePasswordView.xaml",UriKind.Relative)); NavigationService.Navigate(new Uri("/Views/PasswordGenerator/SavePasswordView.xaml",UriKind.Relative));
} }

View file

@ -7,6 +7,7 @@ namespace WeeXnes.Views.PasswordGenerator
public partial class SavePasswordView : Page public partial class SavePasswordView : Page
{ {
public static string GeneratedPassword = ""; public static string GeneratedPassword = "";
public static PasswordGenView _prevPage = null;
public SavePasswordView() public SavePasswordView()
{ {
InitializeComponent(); InitializeComponent();
@ -19,7 +20,8 @@ namespace WeeXnes.Views.PasswordGenerator
private void CloseDialog(object sender, RoutedEventArgs e) private void CloseDialog(object sender, RoutedEventArgs e)
{ {
NavigationService.Navigate(new Uri("/Views/PasswordGenerator/PasswordGenView.xaml",UriKind.Relative)); if(_prevPage != null)
NavigationService.Navigate(_prevPage);
} }
private void CopyToClipboard(object sender, RoutedEventArgs e) private void CopyToClipboard(object sender, RoutedEventArgs e)
{ {

View file

@ -8,6 +8,7 @@ namespace WeeXnes.Views.PasswordGenerator
{ {
public partial class SaveToKeyManagerView : Page public partial class SaveToKeyManagerView : Page
{ {
public SaveToKeyManagerView() public SaveToKeyManagerView()
{ {
InitializeComponent(); InitializeComponent();
@ -29,7 +30,7 @@ namespace WeeXnes.Views.PasswordGenerator
{ {
Console.WriteLine(ex.Message); Console.WriteLine(ex.Message);
} }
NavigationService.Navigate(new Uri("/Views/PasswordGenerator/PasswordGenView.xaml",UriKind.Relative)); NavigationService.Navigate(SavePasswordView._prevPage);
} }
} }
} }

View file

@ -4,7 +4,7 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Version>4.4.0</Version> <Version>4.4.1</Version>
<ProjectGuid>{4B33CEE7-C74D-43B9-B99A-8B273D5195BC}</ProjectGuid> <ProjectGuid>{4B33CEE7-C74D-43B9-B99A-8B273D5195BC}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>WeeXnes</RootNamespace> <RootNamespace>WeeXnes</RootNamespace>