From 399c3c9752109923937dbe3da513bcc635dbef63 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Mon, 15 Nov 2021 21:23:14 -0600 Subject: [PATCH] Finish the binding part of global browser --- .../UserSettings/Settings.cs | 6 +- Flow.Launcher/SelectBrowserWindow.xaml | 275 +-- Flow.Launcher/SettingWindow.xaml | 2099 +++++++---------- 3 files changed, 1005 insertions(+), 1375 deletions(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 65c99d00b..74b502657 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -84,7 +84,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings public int CustomBrowserIndex { get; set; } = 0; - + [JsonIgnore] public CustomBrowserViewModel CustomBrowser { get => CustomBrowserList[CustomBrowserIndex]; @@ -96,7 +96,9 @@ namespace Flow.Launcher.Infrastructure.UserSettings new() { Name = "Default", - Path = "", + Path = "*", + PrivateArg = "*", + EnablePrivate = false, Editable = false } }; diff --git a/Flow.Launcher/SelectBrowserWindow.xaml b/Flow.Launcher/SelectBrowserWindow.xaml index ad471e436..09828737e 100644 --- a/Flow.Launcher/SelectBrowserWindow.xaml +++ b/Flow.Launcher/SelectBrowserWindow.xaml @@ -1,91 +1,77 @@ - + - + - + - + - - + + -