mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
minor clean up
This commit is contained in:
parent
9e39e48bf8
commit
f4f519b5ae
1 changed files with 13 additions and 17 deletions
|
|
@ -803,15 +803,13 @@ namespace Flow.Launcher.ViewModel
|
|||
[RelayCommand]
|
||||
private void TogglePreview()
|
||||
{
|
||||
switch (InternalPreviewVisible || ExternalPreviewVisible)
|
||||
if (InternalPreviewVisible || ExternalPreviewVisible)
|
||||
{
|
||||
case true:
|
||||
HidePreview();
|
||||
break;
|
||||
|
||||
case false:
|
||||
ShowPreview();
|
||||
break;
|
||||
HidePreview();
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowPreview();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -857,15 +855,13 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
public void ResetPreview()
|
||||
{
|
||||
switch (Settings.AlwaysPreview)
|
||||
if (Settings.AlwaysPreview)
|
||||
{
|
||||
case true:
|
||||
ShowPreview();
|
||||
break;
|
||||
|
||||
case false:
|
||||
HidePreview();
|
||||
break;
|
||||
ShowPreview();
|
||||
}
|
||||
else
|
||||
{
|
||||
HidePreview();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -885,7 +881,7 @@ namespace Flow.Launcher.ViewModel
|
|||
break;
|
||||
|
||||
case true
|
||||
when !ExternalPreviewVisible && Settings.AlwaysPreview && CanExternalPreviewSelectedResult(out var path):
|
||||
when !ExternalPreviewVisible && Settings.AlwaysPreview && CanExternalPreviewSelectedResult(out var _):
|
||||
ShowPreview();
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue