From ec20847ec7e0edab6a1a65b38e976d49409c49c7 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Thu, 18 Jul 2024 00:55:32 -0500 Subject: [PATCH] Split "Settings & help" into menu item for each tab --- DesktopClock/MainWindow.xaml | 12 ++++++++++-- DesktopClock/MainWindow.xaml.cs | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/DesktopClock/MainWindow.xaml b/DesktopClock/MainWindow.xaml index 9c0f667..9acd0d3 100644 --- a/DesktopClock/MainWindow.xaml +++ b/DesktopClock/MainWindow.xaml @@ -30,8 +30,6 @@ - - @@ -66,6 +64,16 @@ + + + + + + + + + + diff --git a/DesktopClock/MainWindow.xaml.cs b/DesktopClock/MainWindow.xaml.cs index 4ad443c..e88365c 100644 --- a/DesktopClock/MainWindow.xaml.cs +++ b/DesktopClock/MainWindow.xaml.cs @@ -100,7 +100,11 @@ public void HideForNow() /// Opens a new settings window or activates the existing one. /// [RelayCommand] - public void OpenSettings() => App.ShowSingletonWindow(this); + public void OpenSettings(string tabIndex) + { + Settings.Default.SettingsTabIndex = int.Parse(tabIndex); + App.ShowSingletonWindow(this); + } /// /// Asks the user then creates a new clock executable and starts it.