From 313a8b5f440fa4bef44899b8ff4857e05be556e9 Mon Sep 17 00:00:00 2001 From: DB p Date: Thu, 24 Nov 2022 19:55:29 +0900 Subject: [PATCH 1/3] Add Become A Sponsor Button --- Flow.Launcher.Infrastructure/Constant.cs | 1 + Flow.Launcher/Languages/en.xaml | 1 + Flow.Launcher/SettingWindow.xaml | 33 ++++++++++++++----- Flow.Launcher/SettingWindow.xaml.cs | 2 ++ .../ViewModel/SettingWindowViewModel.cs | 1 + 5 files changed, 30 insertions(+), 8 deletions(-) diff --git a/Flow.Launcher.Infrastructure/Constant.cs b/Flow.Launcher.Infrastructure/Constant.cs index 5ace463768d..ed4e34fee3a 100644 --- a/Flow.Launcher.Infrastructure/Constant.cs +++ b/Flow.Launcher.Infrastructure/Constant.cs @@ -45,6 +45,7 @@ public static class Constant public const string Logs = "Logs"; public const string Website = "https://flowlauncher.com"; + public const string SponsorPage = "https://opencollective.com/flow-launcher"; public const string GitHub = "https://github.com/Flow-Launcher/Flow.Launcher"; public const string Docs = "https://flowlauncher.com/docs"; } diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 89e886c6171..5836df5232b 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -191,6 +191,7 @@ Icons You have activated Flow Launcher {0} times Check for Updates + Become A Sponsor New version {0} is available, would you like to restart Flow Launcher to use the update? Check updates failed, please check your connection and proxy settings to api.github.com. diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index c3473a1675b..4a8a52ea14e 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -1,4 +1,4 @@ - - + + diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index 9ceb9789df0..70758540d69 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -10,7 +10,9 @@ using ModernWpf; using ModernWpf.Controls; using System; +using System.Diagnostics; using System.IO; +using System.Security.Policy; using System.Windows; using System.Windows.Data; using System.Windows.Forms; diff --git a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs index 60dc95e2ef9..0c25dcc857b 100644 --- a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs +++ b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs @@ -799,6 +799,7 @@ public bool ShortcutExists(string key) #region about public string Website => Constant.Website; + public string SponsorPage => Constant.SponsorPage; public string ReleaseNotes => _updater.GitHubRepository + @"/releases/latest"; public string Documentation => Constant.Documentation; public string Docs => Constant.Docs; From d70c0ce58c601fe0ac70b127eab7c9cf0f77f49d Mon Sep 17 00:00:00 2001 From: DB p Date: Thu, 24 Nov 2022 20:24:08 +0900 Subject: [PATCH 2/3] Add Become A sponsor button --- Flow.Launcher/SettingWindow.xaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index 4a8a52ea14e..2c0e4db2591 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -2863,7 +2863,6 @@ NavigateUri="{Binding SponsorPage, Mode=OneWay}" RequestNavigate="OnRequestNavigate" TextDecorations="None"> - Date: Fri, 25 Nov 2022 13:59:30 +1100 Subject: [PATCH 3/3] update sponsor link --- Flow.Launcher.Infrastructure/Constant.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Constant.cs b/Flow.Launcher.Infrastructure/Constant.cs index ed4e34fee3a..b0eebd2df5d 100644 --- a/Flow.Launcher.Infrastructure/Constant.cs +++ b/Flow.Launcher.Infrastructure/Constant.cs @@ -45,7 +45,7 @@ public static class Constant public const string Logs = "Logs"; public const string Website = "https://flowlauncher.com"; - public const string SponsorPage = "https://opencollective.com/flow-launcher"; + public const string SponsorPage = "https://github.com/sponsors/Flow-Launcher"; public const string GitHub = "https://github.com/Flow-Launcher/Flow.Launcher"; public const string Docs = "https://flowlauncher.com/docs"; }