Update On Thu Mar 6 19:36:08 CET 2025

This commit is contained in:
github-action[bot]
2025-03-06 19:36:08 +01:00
parent f19cde2a35
commit 2b9b4eca4f
133 changed files with 3064 additions and 1421 deletions
@@ -267,7 +267,7 @@ namespace ServiceLib.ViewModels
public void SetSpeedTestResult(SpeedTestResult result)
{
if (Utils.IsNullOrEmpty(result.IndexId))
if (result.IndexId.IsNullOrEmpty())
{
NoticeHandler.Instance.SendMessageEx(result.Delay);
NoticeHandler.Instance.Enqueue(result.Delay);
@@ -279,13 +279,13 @@ namespace ServiceLib.ViewModels
return;
}
if (Utils.IsNotEmpty(result.Delay))
if (result.Delay.IsNotEmpty())
{
int.TryParse(result.Delay, out var temp);
item.Delay = temp;
item.DelayVal = result.Delay ?? string.Empty;
}
if (Utils.IsNotEmpty(result.Speed))
if (result.Speed.IsNotEmpty())
{
item.SpeedVal = result.Speed ?? string.Empty;
}
@@ -350,7 +350,7 @@ namespace ServiceLib.ViewModels
return;
}
_serverFilter = ServerFilter;
if (Utils.IsNullOrEmpty(_serverFilter))
if (_serverFilter.IsNullOrEmpty())
{
RefreshServers();
}
@@ -476,7 +476,7 @@ namespace ServiceLib.ViewModels
public async Task EditServerAsync(EConfigType eConfigType)
{
if (Utils.IsNullOrEmpty(SelectedProfile?.IndexId))
if (string.IsNullOrEmpty(SelectedProfile?.IndexId))
{
return;
}
@@ -557,7 +557,7 @@ namespace ServiceLib.ViewModels
public async Task SetDefaultServer()
{
if (Utils.IsNullOrEmpty(SelectedProfile?.IndexId))
if (string.IsNullOrEmpty(SelectedProfile?.IndexId))
{
return;
}
@@ -566,7 +566,7 @@ namespace ServiceLib.ViewModels
public async Task SetDefaultServer(string indexId)
{
if (Utils.IsNullOrEmpty(indexId))
if (indexId.IsNullOrEmpty())
{
return;
}
@@ -598,7 +598,7 @@ namespace ServiceLib.ViewModels
{
return;
}
if (Utils.IsNullOrEmpty(SelectedServer.ID))
if (SelectedServer.ID.IsNullOrEmpty())
{
return;
}
@@ -614,7 +614,7 @@ namespace ServiceLib.ViewModels
return;
}
var url = FmtHandler.GetShareUri(item);
if (Utils.IsNullOrEmpty(url))
if (url.IsNullOrEmpty())
{
return;
}
@@ -649,7 +649,7 @@ namespace ServiceLib.ViewModels
public async Task SortServer(string colName)
{
if (Utils.IsNullOrEmpty(colName))
if (colName.IsNullOrEmpty())
{
return;
}
@@ -776,7 +776,7 @@ namespace ServiceLib.ViewModels
public async Task Export2ClientConfigResult(string fileName, ProfileItem item)
{
if (Utils.IsNullOrEmpty(fileName))
if (fileName.IsNullOrEmpty())
{
return;
}
@@ -803,7 +803,7 @@ namespace ServiceLib.ViewModels
foreach (var it in lstSelecteds)
{
var url = FmtHandler.GetShareUri(it);
if (Utils.IsNullOrEmpty(url))
if (url.IsNullOrEmpty())
{
continue;
}