From d7ce55e5b1d424eb28c63ef6e7db91c33f71c8ef Mon Sep 17 00:00:00 2001 From: haven1433 Date: Thu, 1 Dec 2022 21:44:48 -0600 Subject: [PATCH] feature request pins * allow copy message/error text * add symbol files to help reference --- src/HexManiac.Core/ViewModels/EditorViewModel.cs | 4 ++++ src/HexManiac.WPF/Windows/MainWindow.xaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/HexManiac.Core/ViewModels/EditorViewModel.cs b/src/HexManiac.Core/ViewModels/EditorViewModel.cs index 0fa3576b..cad57827 100644 --- a/src/HexManiac.Core/ViewModels/EditorViewModel.cs +++ b/src/HexManiac.Core/ViewModels/EditorViewModel.cs @@ -704,6 +704,10 @@ namespace HavenSoft.HexManiac.Core.ViewModels { }; } + public void CopyMessage() => fileSystem.CopyText = InformationMessage; + + public void CopyError() => fileSystem.CopyText = ErrorMessage; + private async void ExecuteOpen(object arg) { try { var file = arg as LoadedFile ?? fileSystem.OpenFile("GameBoy Advanced", "gba"); diff --git a/src/HexManiac.WPF/Windows/MainWindow.xaml b/src/HexManiac.WPF/Windows/MainWindow.xaml index 0b0d04ab..09df8180 100644 --- a/src/HexManiac.WPF/Windows/MainWindow.xaml +++ b/src/HexManiac.WPF/Windows/MainWindow.xaml @@ -275,14 +275,17 @@ + + + @@ -379,6 +382,14 @@ + + + + + + + +