Fix crash when opening library sheet with empty category list (#7822)

This commit is contained in:
Andreas 2022-08-19 22:02:37 +02:00 committed by GitHub
parent 6d6c38ecaf
commit 58e6479438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ class LibraryController(
} }
fun showSettingsSheet() { fun showSettingsSheet() {
presenter.categories[presenter.activeCategory].let { category -> presenter.categories.getOrNull(presenter.activeCategory)?.let { category ->
settingsSheet?.show(category) settingsSheet?.show(category)
} }
} }