mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-24 09:44:28 +08:00
Update On Thu Mar 6 19:36:08 CET 2025
This commit is contained in:
@@ -42,14 +42,14 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
private async Task SaveServerAsync()
|
||||
{
|
||||
string remarks = SelectedSource.Remarks;
|
||||
if (Utils.IsNullOrEmpty(remarks))
|
||||
var remarks = SelectedSource.Remarks;
|
||||
if (remarks.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.PleaseFillRemarks);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Utils.IsNullOrEmpty(SelectedSource.Address))
|
||||
if (SelectedSource.Address.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.FillServerAddressCustom);
|
||||
return;
|
||||
@@ -69,7 +69,7 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
public async Task BrowseServer(string fileName)
|
||||
{
|
||||
if (Utils.IsNullOrEmpty(fileName))
|
||||
if (fileName.IsNullOrEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ namespace ServiceLib.ViewModels
|
||||
if (await ConfigHandler.AddCustomServer(_config, item, false) == 0)
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.SuccessfullyImportedCustomServer);
|
||||
if (Utils.IsNotEmpty(item.IndexId))
|
||||
if (item.IndexId.IsNotEmpty())
|
||||
{
|
||||
SelectedSource = JsonUtils.DeepCopy(item);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace ServiceLib.ViewModels
|
||||
private async Task EditServer()
|
||||
{
|
||||
var address = SelectedSource.Address;
|
||||
if (Utils.IsNullOrEmpty(address))
|
||||
if (address.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.FillServerAddressCustom);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user