fix a crash when excluding folder without parents
This commit is contained in:
parent
c6de3a9e85
commit
b94b803a40
|
@ -44,7 +44,7 @@ class ExcludeFolderDialog(val activity: SimpleActivity, val selectedPaths: List<
|
|||
}
|
||||
|
||||
private fun dialogConfirmed() {
|
||||
val path = alternativePaths[radioGroup!!.checkedRadioButtonId]
|
||||
val path = if (alternativePaths.isEmpty()) selectedPaths[0] else alternativePaths[radioGroup!!.checkedRadioButtonId]
|
||||
activity.config.addExcludedFolder(path)
|
||||
callback.invoke()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue