Commit e77c49a8 authored by Andreas Traczyk's avatar Andreas Traczyk

mainwindow: don't resize window when an update is found

Change-Id: Iceee8398d7978b7534dcda74746a0d73642e4354
parent cd06f584
......@@ -102,8 +102,8 @@ MainWindow::MainWindow(QWidget* parent) :
win_sparkle_set_appcast_url("https://dl.ring.cx/windows/winsparkle-ring.xml");
win_sparkle_set_app_details(L"Savoir-faire Linux", L"Jami", QString(VERSION_STRING).toStdWString().c_str());
win_sparkle_set_shutdown_request_callback([]() {QCoreApplication::exit();});
win_sparkle_set_did_find_update_callback([]() {MainWindow::instance().showNormal();});
win_sparkle_set_shutdown_request_callback([]() { QCoreApplication::exit(); });
win_sparkle_set_did_find_update_callback([]() { MainWindow::instance().showWindow(); });
win_sparkle_init();
if (win_sparkle_get_last_check_time() == -1) {
......@@ -224,7 +224,7 @@ MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason)
}
void
MainWindow::notificationClicked() {
MainWindow::showWindow() {
if (currentWindowState_ == Qt::WindowMaximized) {
showMaximized();
} else {
......@@ -234,6 +234,11 @@ MainWindow::notificationClicked() {
raise();
}
void
MainWindow::notificationClicked() {
showWindow();
}
void
MainWindow::createThumbBar()
{
......
......@@ -76,6 +76,7 @@ private:
explicit MainWindow(QWidget* parent = 0);
~MainWindow();
void showWindow();
void setWindowSize(ScreenEnum scr, bool firstUse = false);
ScreenEnum lastScr_;
int lastAccountCount_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment