mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 12:26:58 +03:00
Implement automatic and manual updates on macOS
This commit is contained in:
parent
ea4ef1655b
commit
b5bdfa6c2e
3 changed files with 44 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ public:
|
|||
updateLaunchAction();
|
||||
}
|
||||
|
||||
void createMainToolbarActions(QMainWindow *MainWindow)
|
||||
void createMainToolbarActions(MainWindow *MainWindow)
|
||||
{
|
||||
actionAddInstance = TranslatedAction(MainWindow);
|
||||
actionAddInstance->setObjectName(QStringLiteral("actionAddInstance"));
|
||||
|
|
@ -1027,6 +1027,13 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow
|
|||
{
|
||||
updater->checkForUpdate(APPLICATION->settings()->get("UpdateChannel").toString(), false);
|
||||
}
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
connect(APPLICATION->updateChecker()->getSparkleUpdater(),
|
||||
&SparkleUpdater::canCheckForUpdatesChanged,
|
||||
this,
|
||||
&MainWindow::updatesAllowedChanged);
|
||||
#endif
|
||||
}
|
||||
|
||||
setSelectedInstanceById(APPLICATION->settings()->get("SelectedInstance").toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue