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:
Robert committed 2020-08-07 12:39:08 +02:00
1 parent f3cbd819f5
commit c2034c5de7
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