mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Profiles - Fixed resetting state and reset profiles after editing them
This commit is contained in:
1 parent
041ed8e0a0
commit
19d47ec9f5
5 files changed
+36
-3
No files matched your search
+5
-1
@@ -53,7 +53,11 @@ public class DataBindingViewModel : ActivatableViewModelBase
|
||||
|
||||
DispatcherTimer updateTimer = new(TimeSpan.FromMilliseconds(60.0 / 1000), DispatcherPriority.Render, Update);
|
||||
updateTimer.Start();
|
||||
Disposable.Create(() => updateTimer.Stop()).DisposeWith(d);
|
||||
Disposable.Create(() =>
|
||||
{
|
||||
updateTimer.Stop();
|
||||
_profileEditorService.SaveProfile();
|
||||
}).DisposeWith(d);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user