mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Workshop - Redesigned library
Workshop - Limit screen width to keep main content at 1000px Workshop - Auto-updating WIP
This commit is contained in:
1 parent
4552b3ba17
commit
99d11e1921
37 files changed
+955
-200
No files matched your search
+2
-2
@@ -36,7 +36,7 @@ public partial class WorkshopLayoutViewModel : ActivatableViewModelBase, ILayout
|
||||
Entries = new ObservableCollection<InstalledEntry>(workshopService.GetInstalledEntries().Where(e => e.EntryType == EntryType.Layout));
|
||||
|
||||
this.WhenAnyValue(vm => vm.SelectedEntry).Subscribe(ApplyEntry);
|
||||
this.WhenActivated((CompositeDisposable _) => SelectedEntry = Entries.FirstOrDefault(e => e.EntryId.ToString() == Device.LayoutSelection.Parameter));
|
||||
this.WhenActivated((CompositeDisposable _) => SelectedEntry = Entries.FirstOrDefault(e => e.Id.ToString() == Device.LayoutSelection.Parameter));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -70,7 +70,7 @@ public partial class WorkshopLayoutViewModel : ActivatableViewModelBase, ILayout
|
||||
|
||||
private void ApplyEntry(InstalledEntry? entry)
|
||||
{
|
||||
if (entry == null || Device.LayoutSelection.Parameter == entry.EntryId.ToString())
|
||||
if (entry == null || Device.LayoutSelection.Parameter == entry.Id.ToString())
|
||||
return;
|
||||
_layoutProvider.ConfigureDevice(Device, entry);
|
||||
Save();
|
||||
|
||||
Reference in new issue
Block a user