Fix connectivity staleness, distinct checking dot, read-only groups, poll/probe robustness

This commit is contained in:
av
2026-07-18 16:45:36 +03:00
parent ec673b92f3
commit 7b08568d2c
4 changed files with 87 additions and 32 deletions
+4 -5
View File
@@ -37,7 +37,7 @@ export default class SingBoxStatusPreferences extends ExtensionPreferences {
dispGroup.add(this._switchRow(settings, 'show-speed', _('Show speed'),
_('Show upload/download speed in the top bar.')));
dispGroup.add(this._entryRow(settings, 'selector-group', _('Panel selector group'),
_('Selector group shown in the panel. Empty = first one found.')));
_('Group shown in the panel; a URLTest/Fallback name is also accepted. Empty = first switchable (Selector) group, otherwise the first group.')));
const intervalRow = new Adw.SpinRow({
title: _('Refresh interval'),
@@ -50,7 +50,7 @@ export default class SingBoxStatusPreferences extends ExtensionPreferences {
// --- Connectivity ---------------------------------------------
const connCheckGroup = new Adw.PreferencesGroup({
title: _('Connectivity check'),
description: _('Actively probe the active outbound to tell “up but no internet” from “up and reachable”. Adds a third status-dot state.'),
description: _('Actively probe the active outbound to tell “up but no internet” from “up and reachable”. Adds connectivity-based status-dot states (four in total).'),
});
page.add(connCheckGroup);
@@ -68,9 +68,8 @@ export default class SingBoxStatusPreferences extends ExtensionPreferences {
settings.bind('check-connectivity', connIntervalRow, 'sensitive', Gio.SettingsBindFlags.GET);
connCheckGroup.add(connIntervalRow);
const connUrlRow = this._entryRow(settings, 'connectivity-url', _('Probe URL'),
_('Target URL for the latency probe (a 204/no-content endpoint is ideal).'));
settings.bind('check-connectivity', connUrlRow, 'sensitive', Gio.SettingsBindFlags.GET);
const connUrlRow = this._entryRow(settings, 'connectivity-url', _('Probe / test URL'),
_('Used by both the connectivity check and the manual Test latency action.'));
connCheckGroup.add(connUrlRow);
}