瀏覽代碼

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

Ruben 5 月之前
父節點
當前提交
091c181f82
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      src/PicView.Avalonia/Views/MainView.axaml
  2. 1 1
      src/PicView.Avalonia/Views/MainView.axaml.cs

+ 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();