mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #1024 from Flow-Launcher/ResetWindowWhenShowUp
Reselect to Main Query window when show up
This commit is contained in:
commit
e3b7f5e684
1 changed files with 7 additions and 6 deletions
|
|
@ -280,19 +280,16 @@ namespace Flow.Launcher.ViewModel
|
|||
})
|
||||
.ConfigureAwait(false);
|
||||
|
||||
if (hideWindow)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
if (SelectedIsFromQueryResults())
|
||||
{
|
||||
_userSelectedRecord.Add(result);
|
||||
_history.Add(result.OriginQuery.RawQuery);
|
||||
}
|
||||
else
|
||||
|
||||
if (hideWindow)
|
||||
{
|
||||
SelectedResults = Results;
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1014,6 +1011,10 @@ namespace Flow.Launcher.ViewModel
|
|||
// Trick for no delay
|
||||
MainWindowOpacity = 0;
|
||||
|
||||
if (!SelectedIsFromQueryResults())
|
||||
{
|
||||
SelectedResults = Results;
|
||||
}
|
||||
switch (Settings.LastQueryMode)
|
||||
{
|
||||
case LastQueryMode.Empty:
|
||||
|
|
|
|||
Loading…
Reference in a new issue