Skip to content

Commit

Permalink
Merge pull request #137 from LykosAI/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 authored Sep 19, 2023
2 parents 64180c0 + 2caa4d9 commit 4cb06f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).

## v2.4.5
### Fixed
- Fixed "Library Dir not set" error on launch

## v2.4.4
### Added
- Added button to toggle automatic scrolling of console output
Expand Down
2 changes: 1 addition & 1 deletion StabilityMatrix.Avalonia/ViewModels/LaunchPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public partial class LaunchPageViewModel : PageViewModelBase, IDisposable, IAsyn
private BasePackage? runningPackage;

[ObservableProperty]
private bool autoScrollToEnd;
private bool autoScrollToEnd = true;

public virtual BasePackage? SelectedBasePackage =>
PackageFactory.FindPackageByName(SelectedPackage?.PackageName);
Expand Down
10 changes: 9 additions & 1 deletion StabilityMatrix.Core/Services/SettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,15 @@ Expression<Func<Settings, TValue>> settingsProperty
);

settingsSetter(Settings, sourceGetter(source));
SaveSettingsAsync().SafeFireAndForget();

if (IsLibraryDirSet)
{
SaveSettingsAsync().SafeFireAndForget();
}
else
{
Logger.Warn("[RelayPropertyFor] LibraryDir not set when saving");
}

// Invoke property changed event
SettingsPropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
Expand Down

0 comments on commit 4cb06f9

Please sign in to comment.