equal
deleted
inserted
replaced
98 #include "DataManager.h" |
98 #include "DataManager.h" |
99 |
99 |
100 #ifdef __APPLE__ |
100 #ifdef __APPLE__ |
101 #include "M3Panel.h" |
101 #include "M3Panel.h" |
102 #ifdef SPARKLE_ENABLED |
102 #ifdef SPARKLE_ENABLED |
103 #define SPARKLE_APPCAST_URL "http://www.hedgewars.org/download/appcast.xml" |
|
104 #include "SparkleAutoUpdater.h" |
103 #include "SparkleAutoUpdater.h" |
105 #endif |
104 #endif |
106 #endif |
105 #endif |
107 |
106 |
108 |
107 |
150 panel = new M3Panel; |
149 panel = new M3Panel; |
151 |
150 |
152 #ifdef SPARKLE_ENABLED |
151 #ifdef SPARKLE_ENABLED |
153 AutoUpdater* updater; |
152 AutoUpdater* updater; |
154 |
153 |
155 updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); |
154 updater = new SparkleAutoUpdater(); |
156 if (updater && config->isAutoUpdateEnabled()) |
155 if (updater && config->isAutoUpdateEnabled()) |
157 updater->checkForUpdates(); |
156 updater->checkForUpdates(); |
158 #endif |
157 #endif |
159 |
158 |
160 QShortcut *hideFrontend = new QShortcut(QKeySequence("Ctrl+M"), this); |
159 QShortcut *hideFrontend = new QShortcut(QKeySequence("Ctrl+M"), this); |