mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Profile editor - Continuously update datamodel in cond. target select
Profile editor - Fixed undo/redo sometimes not registering Ctrl+Z/Ctrl+Y Profile editor - Added feedback messaging to undo/redo
This commit is contained in:
1 parent
c5dbe73000
commit
1f70c65651
10 files changed
+117
-49
No files matched your search
@@ -24,8 +24,8 @@ namespace Artemis.UI.Shared.Services.Interfaces
|
||||
void ChangeSelectedProfileElement(RenderProfileElement profileElement);
|
||||
void UpdateSelectedProfileElement();
|
||||
void UpdateProfilePreview();
|
||||
void UndoUpdateProfile(ProfileModule module);
|
||||
void RedoUpdateProfile(ProfileModule module);
|
||||
bool UndoUpdateProfile(ProfileModule module);
|
||||
bool RedoUpdateProfile(ProfileModule module);
|
||||
Module GetCurrentModule();
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -132,11 +132,11 @@ namespace Artemis.UI.Shared.Services
|
||||
OnProfilePreviewUpdated();
|
||||
}
|
||||
|
||||
public void UndoUpdateProfile(ProfileModule module)
|
||||
public bool UndoUpdateProfile(ProfileModule module)
|
||||
{
|
||||
var undid = _profileService.UndoUpdateProfile(SelectedProfile, module);
|
||||
if (!undid)
|
||||
return;
|
||||
return false;
|
||||
|
||||
OnSelectedProfileChanged(new ProfileEventArgs(SelectedProfile, SelectedProfile));
|
||||
|
||||
@@ -149,13 +149,14 @@ namespace Artemis.UI.Shared.Services
|
||||
}
|
||||
|
||||
UpdateProfilePreview();
|
||||
return true;
|
||||
}
|
||||
|
||||
public void RedoUpdateProfile(ProfileModule module)
|
||||
public bool RedoUpdateProfile(ProfileModule module)
|
||||
{
|
||||
var redid = _profileService.RedoUpdateProfile(SelectedProfile, module);
|
||||
if (!redid)
|
||||
return;
|
||||
return false;
|
||||
|
||||
OnSelectedProfileChanged(new ProfileEventArgs(SelectedProfile, SelectedProfile));
|
||||
|
||||
@@ -168,6 +169,7 @@ namespace Artemis.UI.Shared.Services
|
||||
}
|
||||
|
||||
UpdateProfilePreview();
|
||||
return true;
|
||||
}
|
||||
|
||||
public PropertyInputRegistration RegisterPropertyInput<T>(PluginInfo pluginInfo) where T : PropertyInputViewModel
|
||||
|
||||
Reference in new issue
Block a user