Confirm feature: tray noticiation message when a new folder need to be confirmed

Issue #3148
This commit is contained in:
Olivier Goffart 2015-07-27 10:33:05 +02:00
parent 45b598cacb
commit ff6c11f126

View file

@ -1067,6 +1067,12 @@ void Folder::slotNewBigFolderDiscovered(const QString &newF)
journal->setSelectiveSyncList(SyncJournalDb::SelectiveSyncUndecidedList, undecidedList); journal->setSelectiveSyncList(SyncJournalDb::SelectiveSyncUndecidedList, undecidedList);
emit newBigFolderDiscovered(newFolder); emit newBigFolderDiscovered(newFolder);
} }
QString message = tr("A new folder larger than %1 MB has been added: %2.\n"
"Please go in the settings to select it if you wish to download it.")
.arg(ConfigFile().newBigFolderSizeLimit().second).arg(newF);
auto logger = Logger::instance();
logger->postOptionalGuiLog(Theme::instance()->appNameGUI(), message);
} }