mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Logic
This commit is contained in:
parent
15255ddf14
commit
6ad21bd636
3 changed files with 7 additions and 7 deletions
|
|
@ -89,8 +89,8 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
|||
public double SettingWindowWidth { get; set; } = 1000;
|
||||
public double SettingWindowHeight { get; set; } = 700;
|
||||
public bool SettingWindowFirstLaunch { get; set; } = true;
|
||||
public double SettingWindowTop { get; set; }
|
||||
public double SettingWindowLeft { get; set; }
|
||||
public double? SettingWindowTop { get; set; } = null;
|
||||
public double? SettingWindowLeft { get; set; } = null;
|
||||
public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal;
|
||||
|
||||
public int CustomExplorerIndex { get; set; } = 0;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public partial class SettingWindow
|
|||
|
||||
public void InitializePosition()
|
||||
{
|
||||
if (_settings.SettingWindowFirstLaunch || _settings.SettingWindowFirstLaunch == null)
|
||||
if (_settings.SettingWindowTop == null || _settings.SettingWindowLeft == null)
|
||||
{
|
||||
Top = WindowTop();
|
||||
Left = WindowLeft();
|
||||
|
|
@ -118,8 +118,8 @@ public partial class SettingWindow
|
|||
}
|
||||
else
|
||||
{
|
||||
Top = _settings.SettingWindowTop;
|
||||
Left = _settings.SettingWindowLeft;
|
||||
Top = _settings.SettingWindowTop.Value;
|
||||
Left = _settings.SettingWindowLeft.Value;
|
||||
}
|
||||
WindowState = _settings.SettingWindowState;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ public class SettingWindowViewModel : BaseModel
|
|||
set => Settings.SettingWindowHeight = value;
|
||||
}
|
||||
|
||||
public double SettingWindowTop
|
||||
public double? SettingWindowTop
|
||||
{
|
||||
get => Settings.SettingWindowTop;
|
||||
set => Settings.SettingWindowTop = value;
|
||||
}
|
||||
|
||||
public double SettingWindowLeft
|
||||
public double? SettingWindowLeft
|
||||
{
|
||||
get => Settings.SettingWindowLeft;
|
||||
set => Settings.SettingWindowLeft = value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue