Use sparkle to check for updates on macOS and Windows

This commit is contained in:
Jonas Kvinge
2020-08-01 03:37:16 +02:00
parent b07903c3e9
commit af0d092054
6 changed files with 51 additions and 5 deletions

View File

@@ -77,6 +77,10 @@
#include <singleapplication.h>
#include <singlecoreapplication.h>
#ifdef HAVE_QTSPARKLE
# include <qtsparkle-qt5/Updater>
#endif
#ifdef HAVE_DBUS
# include "core/mpris.h"
#endif
@@ -242,6 +246,11 @@ int main(int argc, char* argv[]) {
translations->LoadTranslation("strawberry", ":/translations", language);
translations->LoadTranslation("strawberry", a.applicationDirPath(), language);
translations->LoadTranslation("strawberry", QDir::currentPath(), language);
#ifdef HAVE_QTSPARKLE
qtsparkle::LoadTranslations(language);
#endif
#endif
Application app;