Fix some errors from cli options

Error is from this commit a95b050
This commit is contained in:
ema
2025-05-11 03:53:39 +08:00
parent 8279c55526
commit e4ea156a20
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ internal class PipeServerManager : IDisposable
var pipeMessage = split[0];
var path = split[1];
var option = split.Length >= 3 ? split[2] : string.Empty;
var option = split.Length >= 3 ? split[2] : null;
switch (pipeMessage)
{

View File

@@ -79,7 +79,7 @@ internal class ViewWindowManager : IDisposable
if (string.IsNullOrEmpty(path))
path = NativeMethods.QuickLook.GetCurrentSelection();
if (options != null)
if (!string.IsNullOrEmpty(options))
InvokePreviewWithOption(path, options);
else
if (_viewerWindow.Visibility == Visibility.Visible && (string.IsNullOrEmpty(path) || path == _invokedPath))