From: Claudio Cambra Date: Fri, 5 May 2023 02:22:38 +0000 (+0800) Subject: Notify result of attempted account import with messagebox X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~46^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6eb2fd1cc0b74c8de221e1c1c46df2c30d39075b;p=nextcloud-desktop.git Notify result of attempted account import with messagebox Signed-off-by: Claudio Cambra --- diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index 1c923295e..61b240985 100644 --- 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; }