diff --git a/StabilityMatrix.Avalonia/ViewModels/LaunchPageViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/LaunchPageViewModel.cs
index 7111deda..1da174fa 100644
--- a/StabilityMatrix.Avalonia/ViewModels/LaunchPageViewModel.cs
+++ b/StabilityMatrix.Avalonia/ViewModels/LaunchPageViewModel.cs
@@ -93,6 +93,7 @@ public partial class LaunchPageViewModel : PageViewModelBase, IDisposable
EventManager.Instance.PackageLaunchRequested += OnPackageLaunchRequested;
EventManager.Instance.OneClickInstallFinished += OnOneClickInstallFinished;
EventManager.Instance.InstalledPackagesChanged += OnInstalledPackagesChanged;
+ EventManager.Instance.TeachingTooltipNeeded += OnTeachingTooltipNeeded;
// Handler for console input
Console.ApcInput += (_, message) =>
{
@@ -103,6 +104,9 @@ public partial class LaunchPageViewModel : PageViewModelBase, IDisposable
};
}
+ private void OnTeachingTooltipNeeded(object? sender, EventArgs e) =>
+ IsLaunchTeachingTipsOpen = true;
+
private void OnInstalledPackagesChanged(object? sender, EventArgs e) => OnLoaded();
private void OnPackageLaunchRequested(object? sender, Guid e)
@@ -132,6 +136,8 @@ public partial class LaunchPageViewModel : PageViewModelBase, IDisposable
[RelayCommand]
private async Task LaunchAsync()
{
+ IsLaunchTeachingTipsOpen = false;
+
var activeInstall = SelectedPackage;
if (activeInstall == null)
{
diff --git a/StabilityMatrix.Avalonia/ViewModels/SettingsViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/SettingsViewModel.cs
index 2aa32b67..2c15b6e6 100644
--- a/StabilityMatrix.Avalonia/ViewModels/SettingsViewModel.cs
+++ b/StabilityMatrix.Avalonia/ViewModels/SettingsViewModel.cs
@@ -84,6 +84,11 @@ public partial class SettingsViewModel : PageViewModelBase
};
}
+ partial void OnRemoveSymlinksOnShutdownChanged(bool value)
+ {
+ settingsManager.Transaction(s => s.RemoveFolderLinksOnShutdown = value);
+ }
+
[RelayCommand]
private async Task CheckPythonVersion()
{
diff --git a/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml b/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml
index 4310fccf..3b34cb46 100644
--- a/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml
+++ b/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml
@@ -31,12 +31,18 @@
Grid.Row="0"
Grid.Column="0"
Width="72"
+ Name="LaunchBtn"
Margin="16,8,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Stretch"
Classes="success"
Command="{Binding LaunchCommand}"
Content="Launch" />
+