Add settings to minimize and raise the windows together
Both are checkboxes in Manage Skins, Colors and Fonts and default to on. The entry window minimizes and restores the other windows with itself. Activating any window raises the others that are not minimized. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -610,14 +610,14 @@ public sealed partial class EntryWindow
|
||||
|
||||
private async void OnThemeSettings(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
ThemeDialog dialog = new(session.Settings.Theme);
|
||||
if (await dialog.ShowDialog<string?>(this) is not { } picked)
|
||||
ThemeDialog dialog = new(session.Settings);
|
||||
if (await dialog.ShowDialog<Settings?>(this) is not { } updated)
|
||||
{
|
||||
return;
|
||||
}
|
||||
session.Save(session.Settings with { Theme = picked });
|
||||
Themes.Use(picked);
|
||||
Status($"{picked} colours");
|
||||
session.Save(updated);
|
||||
Themes.Use(updated.Theme);
|
||||
Status($"{updated.Theme} colours");
|
||||
}
|
||||
|
||||
private async void OnQtcSetup(object? sender, RoutedEventArgs e)
|
||||
@@ -752,6 +752,7 @@ public sealed partial class EntryWindow
|
||||
// No owner: an owned window is transient-for the entry window, so the
|
||||
// window manager keeps it above the entry window and it cannot be
|
||||
// lowered. Closing the entry window closes these (see the Closed handler in the constructor).
|
||||
window.Activated += (_, _) => RaiseTogether(window);
|
||||
window.Show();
|
||||
return window;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user