mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 02:10:44 -05:00
don't allow editing setting while trying to connect
This commit is contained in:
parent
3f5c6b7028
commit
ccc74fcdb4
@ -33,11 +33,15 @@ namespace Aki.Launcher.ViewModels
|
|||||||
|
|
||||||
public async Task ConnectServer()
|
public async Task ConnectServer()
|
||||||
{
|
{
|
||||||
|
LauncherSettingsProvider.Instance.AllowSettings = false;
|
||||||
|
|
||||||
if (!await ServerManager.LoadDefaultServerAsync(LauncherSettingsProvider.Instance.Server.Url))
|
if (!await ServerManager.LoadDefaultServerAsync(LauncherSettingsProvider.Instance.Server.Url))
|
||||||
{
|
{
|
||||||
connectModel.ConnectionFailed = true;
|
connectModel.ConnectionFailed = true;
|
||||||
connectModel.InfoText = string.Format(LocalizationProvider.Instance.server_unavailable_format_1,
|
connectModel.InfoText = string.Format(LocalizationProvider.Instance.server_unavailable_format_1,
|
||||||
LauncherSettingsProvider.Instance.Server.Name);
|
LauncherSettingsProvider.Instance.Server.Name);
|
||||||
|
|
||||||
|
LauncherSettingsProvider.Instance.AllowSettings = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,6 +61,8 @@ namespace Aki.Launcher.ViewModels
|
|||||||
|
|
||||||
NavigateTo(new LoginViewModel(HostScreen, noAutoLogin));
|
NavigateTo(new LoginViewModel(HostScreen, noAutoLogin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LauncherSettingsProvider.Instance.AllowSettings = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RetryCommand()
|
public void RetryCommand()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user