UI: Call Refresh() before doing other stuff

This commit is contained in:
n00mkrad 2023-01-08 02:00:40 +01:00
parent 12a0714bfe
commit 206ddda873
1 changed files with 6 additions and 3 deletions

View File

@ -43,6 +43,12 @@ namespace Flowframes
{
CheckForIllegalCrossThreadCalls = false;
AutoScaleMode = AutoScaleMode.None;
}
private async void Form1_Shown(object sender, EventArgs e)
{
Refresh();
await Task.Delay(1);
StartupChecks.CheckOs();
@ -67,10 +73,7 @@ namespace Flowframes
if (Program.args.Contains("show-model-downloader"))
new ModelDownloadForm().ShowDialog();
}
private async void Form1_Shown(object sender, EventArgs e)
{
if (Debugger.IsAttached)
{
Logger.Log("Debugger is attached - Flowframes seems to be running within VS.");