mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-10 10:32:53 +08:00
Update On Thu Oct 10 20:36:58 CEST 2024
This commit is contained in:
@@ -32,19 +32,19 @@ namespace ServiceLib.ViewModels
|
||||
}
|
||||
CoreType = SelectedSource?.coreType?.ToString();
|
||||
|
||||
BrowseServerCmd = ReactiveCommand.Create(() =>
|
||||
BrowseServerCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
_updateView?.Invoke(EViewAction.BrowseServer, null);
|
||||
});
|
||||
|
||||
EditServerCmd = ReactiveCommand.Create(() =>
|
||||
EditServerCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
EditServer();
|
||||
await EditServer();
|
||||
});
|
||||
|
||||
SaveServerCmd = ReactiveCommand.Create(() =>
|
||||
SaveServerCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
SaveServerAsync();
|
||||
await SaveServerAsync();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace ServiceLib.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private void EditServer()
|
||||
private async Task EditServer()
|
||||
{
|
||||
var address = SelectedSource.address;
|
||||
if (Utils.IsNullOrEmpty(address))
|
||||
|
Reference in New Issue
Block a user