Show notification popup after application start in tray

This commit is contained in:
Yuriy Puchkov
2020-08-12 12:09:44 +03:00
parent c8dd2e088a
commit 049c4c1f8a
18 changed files with 90 additions and 0 deletions

View File

@@ -226,6 +226,12 @@ void Controller::enableTrayIcon() {
};
connect(m_trayIcon, &QSystemTrayIcon::activated, this, trayIconActivated);
m_trayIcon->show();
if (!ConfigHandler().startupLaunchValue()) {
m_trayIcon->showMessage("Flameshot",
QObject::tr("Application is started successfully"),
QSystemTrayIcon::Information,
3000);
}
}
void Controller::disableTrayIcon() {