From a73d70880b0342cafbc4f039f0d561e4e3e5d542 Mon Sep 17 00:00:00 2001 From: Bagus Nur Listiyono Date: Fri, 28 Jul 2023 21:54:25 +0700 Subject: [PATCH] Enable certain Quick Settings menu when game is running Enhancement #197 This commits enables Quick Settings button when game is running like opening folders.. well that's basically it --- .../XAMLs/MainApp/Pages/HomePage.xaml.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs b/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs index 5ff5c086f..b8425a876 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs +++ b/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs @@ -626,7 +626,13 @@ private async void CheckRunningGameInstance(CancellationToken Token) StartGameBtn.IsEnabled = false; StartGameBtn.Content = BtnRunningGame; - GameStartupSetting.IsEnabled = false; + + //GameStartupSetting.IsEnabled = false; + RepairGameButton.IsEnabled = false; + UninstallGameButton.IsEnabled = false; + ConvertVersionButton.IsEnabled = false; + CustomArgsTextBox.IsEnabled = false; + PlaytimeIdleStack.Visibility = Visibility.Collapsed; PlaytimeRunningStack.Visibility = Visibility.Visible; @@ -641,7 +647,13 @@ private async void CheckRunningGameInstance(CancellationToken Token) StartGameBtn.IsEnabled = true; StartGameBtn.Content = BtnStartGame; - GameStartupSetting.IsEnabled = true; + + //GameStartupSetting.IsEnabled = true; + RepairGameButton.IsEnabled = true; + UninstallGameButton.IsEnabled = true; + ConvertVersionButton.IsEnabled = true; + CustomArgsTextBox.IsEnabled = true; + PlaytimeIdleStack.Visibility = Visibility.Visible; PlaytimeRunningStack.Visibility = Visibility.Collapsed;