Skip to content

Commit 978b185

Browse files
committed
Add PrivateModeArgument & Add IPropertyChanged interface for some properties
1 parent 1303ae5 commit 978b185

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

Plugins/Flow.Launcher.Plugin.Url/Settings.cs

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22
{
33
public class Settings : BaseModel
44
{
5-
public bool UseCustomBrowser { get; set; } = false;
5+
private bool _useCustomBrowser = false;
6+
public bool UseCustomBrowser
7+
{
8+
get => _useCustomBrowser;
9+
set
10+
{
11+
if (_useCustomBrowser != value)
12+
{
13+
_useCustomBrowser = value;
14+
OnPropertyChanged();
15+
}
16+
}
17+
}
618

719
private string _browserPath = string.Empty;
820
public string BrowserPath
@@ -18,8 +30,22 @@ public string BrowserPath
1830
}
1931
}
2032

21-
public bool OpenInNewBrowserWindow { get; set; } = false;
33+
private bool _openInNewBrowserWindow = false;
34+
public bool OpenInNewBrowserWindow
35+
{
36+
get => _openInNewBrowserWindow;
37+
set
38+
{
39+
if (_openInNewBrowserWindow != value)
40+
{
41+
_openInNewBrowserWindow = value;
42+
OnPropertyChanged();
43+
}
44+
}
45+
}
2246

2347
public bool OpenInPrivateMode { get; set; } = false;
48+
49+
public string PrivateModeArgument { get; set; } = string.Empty;
2450
}
2551
}

0 commit comments

Comments
 (0)