mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 19:19:23 +08:00
Comment out code for later update
This commit is contained in:
parent
934a41e414
commit
f16804c0f8
@ -34,7 +34,7 @@ namespace Wox.CommandArgs
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
App.Window.ShowApp();
|
App.API.ShowApp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,9 @@ namespace Wox.CommandArgs
|
|||||||
if (args.Count > 0)
|
if (args.Count > 0)
|
||||||
{
|
{
|
||||||
string query = args[0];
|
string query = args[0];
|
||||||
App.Window.ChangeQuery(query);
|
App.API.ChangeQuery(query);
|
||||||
}
|
}
|
||||||
App.Window.ShowApp();
|
App.API.ShowApp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ namespace Wox.CommandArgs
|
|||||||
|
|
||||||
public void Execute(IList<string> args)
|
public void Execute(IList<string> args)
|
||||||
{
|
{
|
||||||
PluginManager.Init(App.Window);
|
PluginManager.Init(App.API);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,8 @@ namespace Wox.CommandArgs
|
|||||||
|
|
||||||
public void Execute(IList<string> args)
|
public void Execute(IList<string> args)
|
||||||
{
|
{
|
||||||
App.Window.ToggleWox();
|
//TODO: Add ToggleWox Method
|
||||||
|
//App.API.ToggleWox();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,11 +44,11 @@ namespace Wox
|
|||||||
ActionKeyword = tbAction.Text
|
ActionKeyword = tbAction.Text
|
||||||
};
|
};
|
||||||
UserSettingStorage.Instance.CustomPluginHotkeys.Add(pluginHotkey);
|
UserSettingStorage.Instance.CustomPluginHotkeys.Add(pluginHotkey);
|
||||||
settingWidow.MainWindow.SetHotkey(ctlHotkey.CurrentHotkey, delegate
|
//settingWidow.MainWindow.SetHotkey(ctlHotkey.CurrentHotkey, delegate
|
||||||
{
|
//{
|
||||||
settingWidow.MainWindow.ChangeQuery(pluginHotkey.ActionKeyword);
|
// settingWidow.MainWindow.ChangeQuery(pluginHotkey.ActionKeyword);
|
||||||
settingWidow.MainWindow.ShowApp();
|
// settingWidow.MainWindow.ShowApp();
|
||||||
});
|
//});
|
||||||
MessageBox.Show(InternationalizationManager.Instance.GetTranslation("succeed"));
|
MessageBox.Show(InternationalizationManager.Instance.GetTranslation("succeed"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -62,12 +62,12 @@ namespace Wox
|
|||||||
updateCustomHotkey.ActionKeyword = tbAction.Text;
|
updateCustomHotkey.ActionKeyword = tbAction.Text;
|
||||||
updateCustomHotkey.Hotkey = ctlHotkey.CurrentHotkey.ToString();
|
updateCustomHotkey.Hotkey = ctlHotkey.CurrentHotkey.ToString();
|
||||||
//remove origin hotkey
|
//remove origin hotkey
|
||||||
settingWidow.MainWindow.RemoveHotkey(oldHotkey);
|
//settingWidow.MainWindow.RemoveHotkey(oldHotkey);
|
||||||
settingWidow.MainWindow.SetHotkey(updateCustomHotkey.Hotkey, delegate
|
//settingWidow.MainWindow.SetHotkey(updateCustomHotkey.Hotkey, delegate
|
||||||
{
|
//{
|
||||||
settingWidow.MainWindow.ShowApp();
|
// settingWidow.MainWindow.ShowApp();
|
||||||
settingWidow.MainWindow.ChangeQuery(updateCustomHotkey.ActionKeyword);
|
// settingWidow.MainWindow.ChangeQuery(updateCustomHotkey.ActionKeyword);
|
||||||
});
|
//});
|
||||||
MessageBox.Show(InternationalizationManager.Instance.GetTranslation("succeed"));
|
MessageBox.Show(InternationalizationManager.Instance.GetTranslation("succeed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,8 +94,8 @@ namespace Wox
|
|||||||
|
|
||||||
private void BtnTestActionKeyword_OnClick(object sender, RoutedEventArgs e)
|
private void BtnTestActionKeyword_OnClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
settingWidow.MainWindow.ShowApp();
|
//settingWidow.MainWindow.ShowApp();
|
||||||
settingWidow.MainWindow.ChangeQuery(tbAction.Text);
|
//settingWidow.MainWindow.ChangeQuery(tbAction.Text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
UserSettingStorage.Instance.MaxResultsToShow = (int)comboMaxResultsToShow.SelectedItem;
|
UserSettingStorage.Instance.MaxResultsToShow = (int)comboMaxResultsToShow.SelectedItem;
|
||||||
UserSettingStorage.Instance.Save();
|
UserSettingStorage.Instance.Save();
|
||||||
MainWindow.pnlResult.lbResults.GetBindingExpression(MaxHeightProperty).UpdateTarget();
|
//MainWindow.pnlResult.lbResults.GetBindingExpression(MaxHeightProperty).UpdateTarget();
|
||||||
};
|
};
|
||||||
|
|
||||||
cbHideWhenDeactive.IsChecked = UserSettingStorage.Instance.HideWhenDeactive;
|
cbHideWhenDeactive.IsChecked = UserSettingStorage.Instance.HideWhenDeactive;
|
||||||
@ -250,18 +250,18 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
if (ctlHotkey.CurrentHotkeyAvailable)
|
if (ctlHotkey.CurrentHotkeyAvailable)
|
||||||
{
|
{
|
||||||
MainWindow.SetHotkey(ctlHotkey.CurrentHotkey, delegate
|
//MainWindow.SetHotkey(ctlHotkey.CurrentHotkey, delegate
|
||||||
{
|
//{
|
||||||
if (!MainWindow.IsVisible)
|
// if (!MainWindow.IsVisible)
|
||||||
{
|
// {
|
||||||
MainWindow.ShowApp();
|
// MainWindow.ShowApp();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
MainWindow.HideApp();
|
// MainWindow.HideApp();
|
||||||
}
|
// }
|
||||||
});
|
//});
|
||||||
MainWindow.RemoveHotkey(UserSettingStorage.Instance.Hotkey);
|
//MainWindow.RemoveHotkey(UserSettingStorage.Instance.Hotkey);
|
||||||
UserSettingStorage.Instance.Hotkey = ctlHotkey.CurrentHotkey.ToString();
|
UserSettingStorage.Instance.Hotkey = ctlHotkey.CurrentHotkey.ToString();
|
||||||
UserSettingStorage.Instance.Save();
|
UserSettingStorage.Instance.Save();
|
||||||
}
|
}
|
||||||
@ -289,7 +289,7 @@ namespace Wox
|
|||||||
UserSettingStorage.Instance.CustomPluginHotkeys.Remove(item);
|
UserSettingStorage.Instance.CustomPluginHotkeys.Remove(item);
|
||||||
lvCustomHotkey.Items.Refresh();
|
lvCustomHotkey.Items.Refresh();
|
||||||
UserSettingStorage.Instance.Save();
|
UserSettingStorage.Instance.Save();
|
||||||
MainWindow.RemoveHotkey(item.Hotkey);
|
//MainWindow.RemoveHotkey(item.Hotkey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user