mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
fix intro UI not showing secret key after registration, fix file system watchers not starting automatically initially
This commit is contained in:
parent
77d3828f86
commit
d338b4b93c
5 changed files with 11 additions and 7 deletions
|
|
@ -18,14 +18,18 @@ namespace MareSynchronos.WebAPI
|
|||
await CreateConnections();
|
||||
}
|
||||
|
||||
public async Task Register()
|
||||
public async Task Register(bool isIntroUi = false)
|
||||
{
|
||||
if (!ServerAlive) return;
|
||||
Logger.Debug("Registering at service " + ApiUri);
|
||||
var response = await _userHub!.InvokeAsync<string>(UserHubAPI.InvokeRegister);
|
||||
_pluginConfiguration.ClientSecret[ApiUri] = response;
|
||||
_pluginConfiguration.Save();
|
||||
RegisterFinalized?.Invoke();
|
||||
if (!isIntroUi)
|
||||
{
|
||||
RegisterFinalized?.Invoke();
|
||||
}
|
||||
|
||||
await CreateConnections();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue