WPF: Show a "installed" message on first run

This commit is contained in:
genteure 2022-03-18 23:17:11 +08:00
parent 05ab87400e
commit 411e25f06d

View File

@ -93,6 +93,21 @@ namespace BililiveRecorder.WPF.Pages
private async void RootPage_Loaded(object sender, RoutedEventArgs e)
#pragma warning restore VSTHRD100 // Avoid async void methods
{
if (CommandArgumentFirstRun)
{
_ = Task.Run(() =>
{
MessageBox.Show(@"B站录播姬 安装成功!
使
BililiveRecorder Installed!
Please use the shortcut on the desktop or
in the start menu to launch.
You can uninstall me in system settings.", " Installed", MessageBoxButton.OK, MessageBoxImage.Information);
});
}
// 上次选择的路径信息
var pathInfo = this.workDirectoryLoader.Read();
// 第一次尝试从命令行和配置文件自动选择路径