mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add PrivateModeArgument & Add IPropertyChanged interface for some properties
This commit is contained in:
parent
1303ae5682
commit
978b18570a
1 changed files with 28 additions and 2 deletions
|
|
@ -2,7 +2,19 @@
|
|||
{
|
||||
public class Settings : BaseModel
|
||||
{
|
||||
public bool UseCustomBrowser { get; set; } = false;
|
||||
private bool _useCustomBrowser = false;
|
||||
public bool UseCustomBrowser
|
||||
{
|
||||
get => _useCustomBrowser;
|
||||
set
|
||||
{
|
||||
if (_useCustomBrowser != value)
|
||||
{
|
||||
_useCustomBrowser = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private string _browserPath = string.Empty;
|
||||
public string BrowserPath
|
||||
|
|
@ -18,8 +30,22 @@
|
|||
}
|
||||
}
|
||||
|
||||
public bool OpenInNewBrowserWindow { get; set; } = false;
|
||||
private bool _openInNewBrowserWindow = false;
|
||||
public bool OpenInNewBrowserWindow
|
||||
{
|
||||
get => _openInNewBrowserWindow;
|
||||
set
|
||||
{
|
||||
if (_openInNewBrowserWindow != value)
|
||||
{
|
||||
_openInNewBrowserWindow = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool OpenInPrivateMode { get; set; } = false;
|
||||
|
||||
public string PrivateModeArgument { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue