Skip to content

Add setting to swap tray icon left/right click behavior#77

Merged
TheJoeFin merged 3 commits into
devfrom
copilot/add-settings-to-swap-click-buttons
Apr 2, 2026
Merged

Add setting to swap tray icon left/right click behavior#77
TheJoeFin merged 3 commits into
devfrom
copilot/add-settings-to-swap-click-buttons

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

Adds a dropdown in Settings to let users choose whether left click plays/pauses or opens the flyout, since the default (left=play/pause, right=flyout) doesn't suit all workflows.

Changes

  • SettingsService — new TrayClickBehavior int property (0=default, 1=swapped) persisted to LocalSettings; setter clamps out-of-range values to 0
  • SettingsViewModel — exposes TrayClickBehavior as a bindable property
  • SettingsPage.xaml — new "Tray icon click behavior" section with a ComboBox:
    • Left click: play/pause, right click: open flyout (Default)
    • Left click: open flyout, right click: play/pause
  • App.xaml.csTrayIcon_Selected / TrayIcon_ContextMenu handlers now branch on SettingsService.TrayClickBehavior; extracted ShowFlyout(args) helper to eliminate duplication; swapped right-click still falls back to flyout when no station is selected

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • ndavsblobprodwus219.blob.core.windows.net
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/7308510B18BD5F018EBF4978576AFCBB/missingpackages_workingdir --packages /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add setting to swap behavior of left and right click buttons Add setting to swap tray icon left/right click behavior Apr 2, 2026
Copilot AI requested a review from TheJoeFin April 2, 2026 00:37
Refactored SettingsPage.xaml to use card-style Borders for each setting, added new styles for titles, descriptions, and status text, and improved layout and alignment of controls. Enhanced clarity, grouping, and overall user experience.
@TheJoeFin TheJoeFin marked this pull request as ready for review April 2, 2026 01:23
@TheJoeFin TheJoeFin merged commit 02f990f into dev Apr 2, 2026
1 check passed
@TheJoeFin TheJoeFin deleted the copilot/add-settings-to-swap-click-buttons branch April 2, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add setting to swap behavior of left and right click buttons

2 participants