Browse Source

Fixed the file history button cancelling the open with dialog by setting click mode to release. Added tooltip to display file path.

Ruben 5 months ago
parent
commit
091c181f82

+ 1 - 0
src/PicView.Avalonia/Views/MainView.axaml

@@ -272,6 +272,7 @@
 
                             <Button
                                 Classes="hover"
+                                ClickMode="Release"
                                 DockPanel.Dock="Left"
                                 Margin="0,0,5,0"
                                 Padding="8,4"

+ 1 - 1
src/PicView.Avalonia/Views/MainView.axaml.cs

@@ -108,7 +108,7 @@ public partial class MainView : UserControl
             }
             // Initialize the history menu controller
             // TODO: rewrite FileHistory to MVVM
-            FileHistoryMenuController = new FileHistoryMenuController(RecentFilesCM, HistorySortButton, HistoryClearButton, vm);
+            FileHistoryMenuController = new FileHistoryMenuController(RecentFilesCM, HistorySortButton, HistoryClearButton, HistoryFileButton, vm);
             HistoryFileButton.Click += async delegate
             {
                 await FunctionsMapper.ShowRecentHistoryFile();