Publish Zonghengjia Windows 0.3.17 client source
This commit is contained in:
@@ -122,6 +122,30 @@ internal sealed partial class MainForm
|
||||
SetNodeTrafficPermission(false);
|
||||
SetTailnetTrafficVisibility(false);
|
||||
checks["monitor_revoked_hides_and_stops_timer"] = !_nodeTrafficPanel.Visible && !_nodeTrafficTimer.Enabled;
|
||||
|
||||
var emptyProfile = new Profile { RouteModes = profile.RouteModes };
|
||||
_wantConnected = true;
|
||||
SetConnectionState(true, "已连接", "隔离刷新");
|
||||
UpdateProfile(emptyProfile, preserveSelections: true);
|
||||
checks["empty_node_refresh_preserves_disconnect_action"] = _connectButton.Enabled && _selectionUiConnected;
|
||||
|
||||
_wantConnected = false;
|
||||
SetConnectionState(false, "未连接", "隔离刷新");
|
||||
UpdateProfile(emptyProfile, preserveSelections: true);
|
||||
checks["empty_node_refresh_disables_new_connection"] = !_connectButton.Enabled;
|
||||
|
||||
using (var attempt = new CancellationTokenSource())
|
||||
{
|
||||
_connectionAttemptCancellation = attempt;
|
||||
SetBusy(true);
|
||||
UpdateProfile(profile, preserveSelections: true);
|
||||
checks["profile_refresh_preserves_cancel_action_during_connect"] = _connectButton.Enabled;
|
||||
attempt.Cancel();
|
||||
UpdateProfile(profile, preserveSelections: true);
|
||||
checks["profile_refresh_disables_action_while_cancel_finishes"] = !_connectButton.Enabled;
|
||||
_connectionAttemptCancellation = null;
|
||||
}
|
||||
SetBusy(false);
|
||||
ShowLogin();
|
||||
checks["hidden_dashboard_does_not_consume_login_wheel"] = !Wheel(_loginText, -120);
|
||||
RequestExit();
|
||||
|
||||
Reference in New Issue
Block a user