mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
fix key entry in intro ui
This commit is contained in:
parent
68015019eb
commit
5ce0212bb4
1 changed files with 5 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ public partial class IntroUi : WindowMediatorSubscriberBase
|
||||||
if (ImGui.Button("Next##toAgreement"))
|
if (ImGui.Button("Next##toAgreement"))
|
||||||
{
|
{
|
||||||
_readFirstPage = true;
|
_readFirstPage = true;
|
||||||
|
#if !DEBUG
|
||||||
_timeoutTask = Task.Run(async () =>
|
_timeoutTask = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
for (int i = 60; i > 0; i--)
|
for (int i = 60; i > 0; i--)
|
||||||
|
|
@ -88,6 +89,9 @@ public partial class IntroUi : WindowMediatorSubscriberBase
|
||||||
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
|
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
#else
|
||||||
|
_timeoutTask = Task.CompletedTask;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!_configService.Current.AcceptedAgreement && _readFirstPage)
|
else if (!_configService.Current.AcceptedAgreement && _readFirstPage)
|
||||||
|
|
@ -276,6 +280,6 @@ public partial class IntroUi : WindowMediatorSubscriberBase
|
||||||
_tosParagraphs = [Strings.ToS.Paragraph1, Strings.ToS.Paragraph2, Strings.ToS.Paragraph3, Strings.ToS.Paragraph4, Strings.ToS.Paragraph5, Strings.ToS.Paragraph6];
|
_tosParagraphs = [Strings.ToS.Paragraph1, Strings.ToS.Paragraph2, Strings.ToS.Paragraph3, Strings.ToS.Paragraph4, Strings.ToS.Paragraph5, Strings.ToS.Paragraph6];
|
||||||
}
|
}
|
||||||
|
|
||||||
[GeneratedRegex("^([A-F0-9]{2}\\s+)+")]
|
[GeneratedRegex("^([A-F0-9]{2})+")]
|
||||||
private static partial Regex HexRegex();
|
private static partial Regex HexRegex();
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue