fix: offline mode failing

This commit is contained in:
rebelonion 2024-04-14 22:24:58 -05:00
parent ea29449413
commit 7ca44480a9
6 changed files with 28 additions and 8 deletions

View file

@ -65,7 +65,7 @@ class StoragePermissions {
force: Boolean = false,
complete: (Boolean) -> Unit
) {
if ((PrefManager.getVal<String>(PrefName.DownloadsDir).isNotEmpty() || hasDirAccess(this)) && !force) {
if (hasDirAccess(this) && !force) {
complete(true)
return
}