Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Runtime.InteropServices;
using CodexBarWin.Models;
using CodexBarWin.Services;
Expand Down Expand Up @@ -234,6 +235,15 @@ private void OnFrameNavigated(object sender, Microsoft.UI.Xaml.Navigation.Naviga

private void OnSettingsRequested(object? sender, EventArgs e)
{
// Check if settings window is already open
var existingWindow = App.Windows.OfType<SettingsWindow>().FirstOrDefault();
if (existingWindow != null)
{
existingWindow.Activate();
return;
}

// Create and show new settings window
var settingsWindow = new SettingsWindow();
settingsWindow.Activate();
}
Expand Down
Loading