mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
fixes for WindowWalker (#1767)
* #1744, #1743, #1742 * disabling commands
This commit is contained in:
@@ -17,8 +17,8 @@ namespace WindowWalker.ViewModels
|
||||
private readonly HotKeyHandler _hotKeyHandler;
|
||||
private readonly List<string> _hints = new List<string>()
|
||||
{
|
||||
"search...",
|
||||
"you can reinvoke this app using CTRL + WIN",
|
||||
"search for running processes ...",
|
||||
// "you can reinvoke this app using CTRL + WIN",
|
||||
};
|
||||
|
||||
private string _searchText = string.Empty;
|
||||
@@ -168,7 +168,7 @@ namespace WindowWalker.ViewModels
|
||||
_hotKeyHandler = new HotKeyHandler(mainWindow);
|
||||
_hotKeyHandler.OnHotKeyPressed += HotKeyPressedHandler;
|
||||
|
||||
_hints.AddRange(Commands.GetTips());
|
||||
// _hints.AddRange(Commands.GetTips());
|
||||
Hint = _hints[_hintCounter];
|
||||
|
||||
WireCommands();
|
||||
@@ -226,7 +226,8 @@ namespace WindowWalker.ViewModels
|
||||
{
|
||||
LivePreview.DeactivateLivePreview();
|
||||
WindowVisibility = false;
|
||||
ApplicationUpdates.InstallUpdateSyncWithInfo();
|
||||
|
||||
// ApplicationUpdates.InstallUpdateSyncWithInfo();
|
||||
}
|
||||
|
||||
private void WindowShow()
|
||||
@@ -243,13 +244,7 @@ namespace WindowWalker.ViewModels
|
||||
|
||||
public void SwitchToSelectedWindow()
|
||||
{
|
||||
if (SearchText.StartsWith(":"))
|
||||
{
|
||||
LivePreview.DeactivateLivePreview();
|
||||
WindowHide();
|
||||
Commands.ProcessCommand(SearchText);
|
||||
}
|
||||
else if (SelectedWindowResult != null)
|
||||
if (SelectedWindowResult != null)
|
||||
{
|
||||
LivePreview.DeactivateLivePreview();
|
||||
SelectedWindowResult.Result.SwitchToWindow();
|
||||
|
||||
Reference in New Issue
Block a user