ui: winsparkle autoupdate mandatory
suppression of the compiler instructions allowing hiding autoupdate
in configuration widget (options) and mainwindow (connection to the winsparkle-ring.xml).
plus corrected styling and .pro file according to this change
Change-Id: Ib3d2b3d4ceae9101b6aeb2af4c10398dd0c24a3d
diff --git a/mainwindow.cpp b/mainwindow.cpp
index ee86312..e05a432 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -32,11 +32,7 @@
#include "aboutdialog.h"
#include "settingskey.h"
-
-#ifdef ENABLE_AUTOUPDATE
#include "winsparkle.h"
-#endif
-
#include "callmodel.h"
MainWindow::MainWindow(QWidget* parent) :
@@ -98,8 +94,7 @@
} else
resize(1054, 600);
-#ifdef ENABLE_AUTOUPDATE
- win_sparkle_set_appcast_url("http://gpl.savoirfairelinux.net/ring-download/windows/winsparkle-ring.xml");
+ win_sparkle_set_appcast_url("http://dl.ring.cx/windows/winsparkle-ring.xml");
win_sparkle_set_app_details(L"Savoir-faire Linux", L"Ring", QString(NIGHTLY_VERSION).toStdWString().c_str());
win_sparkle_set_shutdown_request_callback([]() {QCoreApplication::exit();});
win_sparkle_set_did_find_update_callback([]() {MainWindow::instance().showNormal();});
@@ -112,7 +107,6 @@
QObject::connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, [=]() {
win_sparkle_cleanup();
});
-#endif
setContextMenuPolicy(Qt::NoContextMenu);