Skip to content

Commit

Permalink
Bugfix: Disable editor UI after cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Waboodoo committed Dec 1, 2022
1 parent 0852a5a commit ad837a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ class ShortcutEditorViewModel(
}

private fun onDiscardDialogConfirmed() {
isFinishing = true
viewModelScope.launch {
withProgressTracking {
temporaryShortcutRepository.deleteTemporaryShortcut()
Expand Down Expand Up @@ -566,7 +567,7 @@ class ShortcutEditorViewModel(
}

fun onIconClicked() {
if (isSaving) {
if (isSaving || isFinishing) {
return
}
dialogState = getIconPickerDialog(
Expand Down

0 comments on commit ad837a0

Please sign in to comment.