From a9d4bd238515615f2e67d1149342baebd4e4ea4d Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 14 Apr 2024 15:59:21 +0200 Subject: [PATCH] Workshop - Plugin/layout management visual tweaks Workshop - Avoid acidentally pre-selecting a release --- .../Screens/Workshop/EntryReleases/EntryReleasesViewModel.cs | 2 +- src/Artemis.UI/Screens/Workshop/Layout/LayoutManageView.axaml | 2 +- src/Artemis.UI/Screens/Workshop/Plugins/PluginManageView.axaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Artemis.UI/Screens/Workshop/EntryReleases/EntryReleasesViewModel.cs b/src/Artemis.UI/Screens/Workshop/EntryReleases/EntryReleasesViewModel.cs index 19eab58ea..a478318e3 100644 --- a/src/Artemis.UI/Screens/Workshop/EntryReleases/EntryReleasesViewModel.cs +++ b/src/Artemis.UI/Screens/Workshop/EntryReleases/EntryReleasesViewModel.cs @@ -27,7 +27,7 @@ public partial class EntryReleasesViewModel : ActivatableViewModelBase this.WhenActivated(d => { router.CurrentPath.Subscribe(p => - SelectedRelease = p != null && p.StartsWith(Entry.GetEntryPath()) && float.TryParse(p.Split('/').Last(), out float releaseId) + SelectedRelease = p != null && p.StartsWith($"{Entry.GetEntryPath()}/releases") && float.TryParse(p.Split('/').Last(), out float releaseId) ? Releases.FirstOrDefault(r => r.Release.Id == releaseId) : null) .DisposeWith(d); diff --git a/src/Artemis.UI/Screens/Workshop/Layout/LayoutManageView.axaml b/src/Artemis.UI/Screens/Workshop/Layout/LayoutManageView.axaml index af6b25fc2..13be66d55 100644 --- a/src/Artemis.UI/Screens/Workshop/Layout/LayoutManageView.axaml +++ b/src/Artemis.UI/Screens/Workshop/Layout/LayoutManageView.axaml @@ -14,7 +14,7 @@ - Manage layout + Manage layout diff --git a/src/Artemis.UI/Screens/Workshop/Plugins/PluginManageView.axaml b/src/Artemis.UI/Screens/Workshop/Plugins/PluginManageView.axaml index c6fe8c059..cf84560af 100644 --- a/src/Artemis.UI/Screens/Workshop/Plugins/PluginManageView.axaml +++ b/src/Artemis.UI/Screens/Workshop/Plugins/PluginManageView.axaml @@ -13,7 +13,7 @@ - Manage plugin + Manage plugin