mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change Property toggle base to Var from visibility
This commit is contained in:
parent
342bf306ef
commit
a4e941b954
1 changed files with 5 additions and 4 deletions
|
|
@ -52,6 +52,8 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
private async void OnClosing(object sender, CancelEventArgs e)
|
private async void OnClosing(object sender, CancelEventArgs e)
|
||||||
{
|
{
|
||||||
|
_settings.WindowTop = Top;
|
||||||
|
_settings.WindowLeft = Left;
|
||||||
_notifyIcon.Visible = false;
|
_notifyIcon.Visible = false;
|
||||||
_viewModel.Save();
|
_viewModel.Save();
|
||||||
e.Cancel = true;
|
e.Cancel = true;
|
||||||
|
|
@ -79,9 +81,9 @@ namespace Flow.Launcher
|
||||||
{
|
{
|
||||||
switch (e.PropertyName)
|
switch (e.PropertyName)
|
||||||
{
|
{
|
||||||
case nameof(MainViewModel.MainWindowVisibility):
|
case nameof(MainViewModel.WinToggleStatus):
|
||||||
{
|
{
|
||||||
if (_viewModel.MainWindowVisibility == Visibility.Visible)
|
if (_viewModel.WinToggleStatus == true)
|
||||||
{
|
{
|
||||||
Activate();
|
Activate();
|
||||||
QueryTextBox.Focus();
|
QueryTextBox.Focus();
|
||||||
|
|
@ -157,7 +159,7 @@ namespace Flow.Launcher
|
||||||
Top = WindowTop();
|
Top = WindowTop();
|
||||||
Left = WindowLeft();
|
Left = WindowLeft();
|
||||||
_settings.WindowTop = Top;
|
_settings.WindowTop = Top;
|
||||||
_settings.WindowLeft = Left;
|
_settings.WindowLeft = Left;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateNotifyIconText()
|
private void UpdateNotifyIconText()
|
||||||
|
|
@ -237,7 +239,6 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
public void WindowAnimator()
|
public void WindowAnimator()
|
||||||
{
|
{
|
||||||
InitializePosition();
|
|
||||||
Storyboard sb = new Storyboard();
|
Storyboard sb = new Storyboard();
|
||||||
var da = new DoubleAnimation
|
var da = new DoubleAnimation
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue