Small improvement

This commit is contained in:
M66B 2022-05-11 08:40:16 +02:00
parent ca401f27ea
commit 1a8aa95ec8
1 changed files with 1 additions and 0 deletions

View File

@ -2530,6 +2530,7 @@ class Core {
parent = db.folder().getFolderByName(account.id, fullName.substring(0, sep));
if (!EntityFolder.USER.equals(type) && !EntityFolder.SYSTEM.equals(type)) {
prefs.edit().remove("updated." + account.id + "." + folder.type).apply();
EntityFolder has = db.folder().getFolderByType(account.id, type);
if (has != null)
type = EntityFolder.USER;