re-added the function that the selected key in the keymanager list gets automatically copied to the clipboard

This commit is contained in:
WeeXnes 2023-03-05 02:44:24 +01:00
parent 287dffbb5d
commit 2b24d81d1a
4 changed files with 12 additions and 3 deletions

View file

@ -8,7 +8,7 @@ namespace WeeXnes.Core
{ {
public class Information public class Information
{ {
public const string Version = "4.2.1"; public const string Version = "4.2.2";
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

@ -15,7 +15,8 @@
<ListView Name="ListviewKeys" <ListView Name="ListviewKeys"
Background="Transparent" Background="Transparent"
Foreground="White" Foreground="White"
BorderThickness="0"> BorderThickness="0"
SelectionChanged="ListviewKeys_OnSelectionChanged">
<ListView.ContextMenu> <ListView.ContextMenu>
<ContextMenu> <ContextMenu>
<MenuItem Header="Remove" <MenuItem Header="Remove"

View file

@ -91,5 +91,13 @@ namespace WeeXnes.Views.KeyManager
} }
private void ListviewKeys_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
KeyItem selectedItem = (KeyItem)ListviewKeys.SelectedItem;
if(selectedItem == null)
return;
Clipboard.SetText(selectedItem.Value);
}
} }
} }

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.2.1</Version> <Version>4.2.2</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>