Mention --wait in error message if tray not available

This commit is contained in:
Martchus 2019-08-10 00:20:38 +02:00
parent 1c13908381
commit 5d044a9645
1 changed files with 4 additions and 2 deletions

View File

@ -68,8 +68,10 @@ int initSyncthingTray(bool windowed, bool waitForTray, const char *connectionCon
// check whether system tray is available
if (!QSystemTrayIcon::isSystemTrayAvailable() && !waitForTray) {
QMessageBox::critical(nullptr, QApplication::applicationName(),
QApplication::translate(
"main", "The system tray is (currently) not available. You could open the tray menu as a regular window using the -w flag, though."));
QApplication::translate("main",
"The system tray is (currently) not available. You could open the tray menu as a regular window using the --windowed flag, though."
"It is also possible to start Syncthing Tray with --wait to wait until the system tray becomes available instead of showing this "
"message."));
return -1;
}