projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fba8081
)
Notify result of attempted account import with messagebox
author
Claudio Cambra
<claudio.cambra@nextcloud.com>
Fri, 5 May 2023 02:22:38 +0000
(10:22 +0800)
committer
Claudio Cambra
<claudio.cambra@nextcloud.com>
Tue, 16 May 2023 13:23:43 +0000
(21:23 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/accountmanager.cpp
patch
|
blob
|
history
diff --git
a/src/gui/accountmanager.cpp
b/src/gui/accountmanager.cpp
index 1c923295e816d87895d85697bfaf20f465ec7f44..61b2409854ffcafe9cad35b3798e48f5dac2baeb 100644
(file)
--- a/
src/gui/accountmanager.cpp
+++ b/
src/gui/accountmanager.cpp
@@
-246,11
+246,17
@@
bool AccountManager::restoreFromLegacySettings()
settings->beginGroup(accountId);
if (const auto acc = loadAccountHelper(*settings)) {
addAccount(acc);
-
+ QMessageBox::information(nullptr,
+ tr("Legacy import"),
+ tr("Successfully imported account from legacy client: %1").arg(acc->prettyName()));
return true;
}
}
}
+
+ QMessageBox::information(nullptr,
+ tr("Legacy import"),
+ tr("Could not import accounts from legacy client configuration."));
return false;
}