mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix progress box action under ui thread
This commit is contained in:
parent
df3cb58c6c
commit
029cb38c61
1 changed files with 13 additions and 0 deletions
|
|
@ -33,6 +33,15 @@ namespace Flow.Launcher
|
||||||
prgBox.Show();
|
prgBox.Show();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
prgBox = new ProgressBoxEx(forceClosed)
|
||||||
|
{
|
||||||
|
Title = caption
|
||||||
|
};
|
||||||
|
prgBox.TitleTextBlock.Text = caption;
|
||||||
|
prgBox.Show();
|
||||||
|
}
|
||||||
|
|
||||||
await reportProgressAsync(prgBox.ReportProgress).ConfigureAwait(false);
|
await reportProgressAsync(prgBox.ReportProgress).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
@ -51,6 +60,10 @@ namespace Flow.Launcher
|
||||||
prgBox?.Close();
|
prgBox?.Close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
prgBox?.Close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue