Replace the Networked stations window with Options tab fields
Station Number, Port and Version to claim are now on the Options tab of Network Status and save when a box loses focus. The other settings (station name, listen port, peers, link on/off) are in a Stations Configuration window opened from a button on the same tab. The explanation texts and the Config menu item are removed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -559,19 +559,6 @@ public sealed partial class EntryWindow
|
||||
Refresh();
|
||||
}
|
||||
|
||||
private async void OnNetworkSettings(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
NetworkDialog dialog = new(session.Settings);
|
||||
Settings? updated = await dialog.ShowDialog<Settings?>(this);
|
||||
if (updated is not null)
|
||||
{
|
||||
session.Save(updated);
|
||||
session.ApplyNetworkSettings();
|
||||
session.ApplyStationLinkSettings();
|
||||
Status(Networking(updated));
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnBandmapSettings(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
BandmapDialog dialog = new(session.Settings);
|
||||
@@ -596,16 +583,6 @@ public sealed partial class EntryWindow
|
||||
}
|
||||
}
|
||||
|
||||
/// What the two networks are now doing, for the status line.
|
||||
private static string Networking(Settings settings) =>
|
||||
(settings.NetworkEnabled, settings.StationLinkEnabled) switch
|
||||
{
|
||||
(true, true) => "broadcasting contacts and linked to the other computers",
|
||||
(true, false) => "broadcasting contacts to other programs",
|
||||
(false, true) => "linked to the other logging computers",
|
||||
_ => "networking off",
|
||||
};
|
||||
|
||||
private async void OnKeyerSettings(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
KeyerDialog dialog = new(session.Settings);
|
||||
|
||||
Reference in New Issue
Block a user