Skip to content

Commit 79a6fda

Browse files
committed
Only insert when explorer is active
1 parent fe0153b commit 79a6fda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,11 @@ public void ToggleFlowLauncher()
793793
public void Show()
794794
{
795795
string _explorerPath = GetActiveExplorerPath();
796-
797-
ChangeQueryText($"{_explorerPath}\\>");
796+
if (_explorerPath != null)
797+
{
798+
ChangeQueryText($"{_explorerPath}\\>");
799+
}
800+
798801
if (_settings.UseSound)
799802
{
800803
MediaPlayer media = new MediaPlayer();

0 commit comments

Comments
 (0)