Layer adapter hints - Finished port, added deleting hints

This commit is contained in:
Robert committed 2022-05-25 22:22:09 +02:00
1 parent 720bebaf35
commit cd97ed420c
7 files changed
+21 -13

No files matched your search

@@ -128,10 +128,15 @@ public class MenuBarViewModel : ActivatableViewModelBase
if (ProfileConfiguration?.Profile == null)
return;
if (!await _windowService.ShowConfirmContentDialog("Adapt profile", "Are you sure you want to adapt the profile to your current surface? Layer assignments may change."))
bool confirmed = await _windowService.ShowConfirmContentDialog(
"Adapt profile",
"Are you sure you want to adapt the profile to your current surface? Layer assignments may change and you will lose your undo/redo history."
);
if (!confirmed)
return;
_profileService.AdaptProfile(ProfileConfiguration.Profile);
_history?.Clear();
}
private void ExecuteToggleSuspended()