Merge pull request #237 from TafThorne/run-without-system-tray-support

Run Without System Tray Support
This commit is contained in:
Adrian Lucrèce Céleste 2019-01-24 12:44:49 -05:00 committed by GitHub
commit a92e9d90f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define TRAY_RETRY_COUNT 10
#define TRAY_RETRY_COUNT 5
#define TRAY_RETRY_WAIT 2000
#include "QBarrierApplication.h"
@ -138,8 +138,7 @@ int waitForTray()
if (++trayAttempts > TRAY_RETRY_COUNT)
{
QMessageBox::critical(NULL, "Barrier",
QObject::tr("System tray is unavailable, don't close your window."));
fprintf(stdout, "System tray is unavailable.\n");
return false;
}