Add option to hide IP info column

This commit is contained in:
2dust
2026-07-11 16:05:31 +08:00
parent a0bd8f9934
commit 3ca49dd9db
4 changed files with 4 additions and 3 deletions
@@ -103,6 +103,7 @@ public class UIItem
public bool MacOSShowInDock { get; set; }
public List<ColumnItem> MainColumnItem { get; set; }
public List<WindowSizeItem> WindowSizeItem { get; set; }
public bool HideColumnIpInfo { get; set; }
}
[Serializable]
@@ -425,7 +425,7 @@ public class SpeedtestService(Config config, Func<SpeedTestResult, Task> updateF
ProfileExManager.Instance.SetTestDelay(it.IndexId, responseTime);
await UpdateFunc(it.IndexId, responseTime.ToString());
if (responseTime > 0)
if (!_config.UiItem.HideColumnIpInfo && responseTime > 0)
{
var ipInfo = await ConnectionHandler.GetIPInfo(webProxy);
var ipStr = ipInfo?.ToString() ?? Global.None;