Fixed cancel on exit not working

This commit is contained in:
Ben Wallis
2018-12-06 21:20:42 +00:00
parent 065e56e0a6
commit 290547cbba
8 changed files with 35 additions and 28 deletions

View File

@@ -186,10 +186,11 @@ namespace Filtration.ThemeEditor.ViewModels
}
#pragma warning disable 1998
public async Task Close()
public async Task<bool> Close()
#pragma warning restore 1998
{
Messenger.Default.Send(new ThemeClosedMessage {ClosedViewModel = this});
return true;
}
private void OnAddThemeComponentCommand(ThemeComponentType themeComponentType)