Ruben 2 年之前
父節點
當前提交
7f0aef8280

+ 5 - 0
src/PicView/ChangeImage/FileHistory.cs

@@ -106,6 +106,11 @@ internal class FileHistory
 
         if (Settings.Default.IncludeSubDirectories)
         {
+            if (_fileHistory.Last().IsArchive())
+            {
+                await LoadPic.LoadPicFromArchiveAsync(_fileHistory.Last()).ConfigureAwait(false);
+                return;
+            }
             var currentFolder = Path.GetDirectoryName(_fileHistory.Last());
             var parentFolder = Path.GetDirectoryName(currentFolder);
             var fileInfo = new FileInfo(parentFolder);

+ 1 - 3
src/PicView/ConfigureSettings/UpdateUIValues.cs

@@ -6,16 +6,14 @@ using PicView.Properties;
 using PicView.UILogic;
 using PicView.UILogic.Loading;
 using PicView.UILogic.Sizing;
+using PicView.UILogic.TransformImage;
 using System.IO;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Media;
-using System.Windows.Threading;
-using PicView.UILogic.TransformImage;
 using static PicView.UILogic.ConfigureWindows;
 using static PicView.UILogic.Tooltip;
 using static PicView.UILogic.TransformImage.Scroll;
-using PicView.Views.Windows;
 
 namespace PicView.ConfigureSettings;
 

+ 2 - 0
src/PicView/PicView.csproj.DotSettings

@@ -0,0 +1,2 @@
+<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
+	<s:String x:Key="/Default/CodeInspection/Daemon/ConfigureAwaitAnalysisMode/@EntryValue">UI</s:String></wpf:ResourceDictionary>