From 19734a9983b7edac3b6cb41ac5a953c5c2fa62d0 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Wed, 30 Mar 2022 20:23:14 +0530 Subject: chore: inform app is minimized via notification - if the app started minimized in tray --- src/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4433068..cff03ac 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -128,7 +128,10 @@ void MainWindow::initRateWidget() { }); } -void MainWindow::runMinimized() { this->minimizeAction->trigger(); } +void MainWindow::runMinimized() { + this->minimizeAction->trigger(); + notify("Whatsie", "Whatsie started minimized in tray"); +} MainWindow::~MainWindow() { webEngine->deleteLater(); } @@ -196,9 +199,7 @@ void MainWindow::updateWindowTheme() { } QList widgets = this->findChildren(); - foreach (QWidget *w, widgets) { w->setPalette(qApp->palette()); } - setNotificationPresenter(webEngine->page()->profile()); if (lockWidget != nullptr) { -- cgit v1.2.3