mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
WPF: Show a "installed" message on first run
This commit is contained in:
parent
05ab87400e
commit
411e25f06d
|
@ -93,6 +93,21 @@ namespace BililiveRecorder.WPF.Pages
|
||||||
private async void RootPage_Loaded(object sender, RoutedEventArgs e)
|
private async void RootPage_Loaded(object sender, RoutedEventArgs e)
|
||||||
#pragma warning restore VSTHRD100 // Avoid async void methods
|
#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();
|
var pathInfo = this.workDirectoryLoader.Read();
|
||||||
// 第一次尝试从命令行和配置文件自动选择路径
|
// 第一次尝试从命令行和配置文件自动选择路径
|
||||||
|
|
Loading…
Reference in New Issue
Block a user