This commit is contained in:
parent
4f786226bd
commit
4cfe64067d
2 changed files with 15 additions and 5 deletions
|
@ -138,10 +138,20 @@ public partial class MainWindow : Window
|
||||||
|
|
||||||
private async void Control_OnLoaded(object? sender, RoutedEventArgs e)
|
private async void Control_OnLoaded(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
string fileVersion = FileVersionInfo
|
string welcomeText = "";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
welcomeText = FileVersionInfo
|
||||||
.GetVersionInfo(Assembly.GetExecutingAssembly().Location)
|
.GetVersionInfo(Assembly.GetExecutingAssembly().Location)
|
||||||
.FileVersion ?? "Unknown";
|
.FileVersion ?? "Unknown";
|
||||||
WelcomeTextTop.Text = "Welcome to the PS2 Games Manager v" + fileVersion;
|
welcomeText = "Welcome to the PS2 Games Manager v" + welcomeText;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
welcomeText = "Welcome to the PS2 Games Manager";
|
||||||
|
}
|
||||||
|
|
||||||
|
WelcomeTextTop.Text = welcomeText;
|
||||||
Util.CheckDir(settings.library_path.GetValue<string>());
|
Util.CheckDir(settings.library_path.GetValue<string>());
|
||||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "DVD"));
|
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "DVD"));
|
||||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "CD"));
|
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "CD"));
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||||
<AssemblyVersion>1.0</AssemblyVersion>
|
<AssemblyVersion>1.0</AssemblyVersion>
|
||||||
<FileVersion>1.3</FileVersion>
|
<FileVersion>1.4</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue