aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsnap_launcher/bin/whatsiebin1727776 -> 1727776 bytes
-rw-r--r--src/mainwindow.cpp9
2 files changed, 7 insertions, 2 deletions
diff --git a/snap_launcher/bin/whatsie b/snap_launcher/bin/whatsie
index a7b9b05..b5218c6 100755
--- a/snap_launcher/bin/whatsie
+++ b/snap_launcher/bin/whatsie
Binary files differ
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 45a2262..1a9aeab 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent)
setWindowTitle(QApplication::applicationName());
setWindowIcon(QIcon(":/icons/app/icon-256.png"));
- setMinimumWidth(500);
+ setMinimumWidth(800);
setMinimumHeight(600);
restoreGeometry(settings.value("geometry").toByteArray());
@@ -359,11 +359,15 @@ void MainWindow::closeEvent(QCloseEvent *event)
if(QSystemTrayIcon::isSystemTrayAvailable() && settings.value("closeButtonActionCombo",0).toInt() == 0){
this->hide();
event->ignore();
- notify(QApplication::applicationName(),"Application is minimized to system tray.");
+ if(settings.value("firstrun_tray",true).toBool()){
+ notify(QApplication::applicationName(),"Application is minimized to system tray.");
+ settings.setValue("firstrun_tray", false);
+ }
return;
}
event->accept();
qApp->quit();
+ settings.setValue("firstrun_tray", true);
QMainWindow::closeEvent(event);
}
@@ -460,6 +464,7 @@ void MainWindow::quitApp()
getPageTheme();
QTimer::singleShot(500,[=](){
qWarning()<<"THEME"<<settings.value("windowTheme").toString();
+ settings.setValue("firstrun_tray", true);
qApp->quit();
});
}