Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
xenonnn4w committed Aug 30, 2024
1 parent dcdff92 commit f24d34d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ class CardAnalysisWidgetConfig : AnkiActivity(), DeckSelectionListener, BaseSnac
}

initializeUIComponents()
showDeckSelectionDialog()
// Show the Deck selection dialog only when there are no decks selected while opening the configuration screen.
val selectedDeckIds = cardAnalysisWidgetPreferences.getSelectedDeckIdFromPreferences(appWidgetId)
if (selectedDeckIds.isEmpty()) {
showDeckSelectionDialog()
}
}
}

Expand Down

0 comments on commit f24d34d

Please sign in to comment.