From ef7499aade74a148416b5fde7e8c03a75ea381c3 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sun, 3 May 2026 03:04:49 -0500 Subject: Extended MODL / direct download handling (#2384) * Extended MODL / direct download handling - name, modname, version, and source options added to download command - nxmhandler init adds schemas and MODL entry with default launch args - Add MODL register button to general tab - On window display, call meta function to trigger both registrations --- src/settingsdialoggeneral.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/settingsdialoggeneral.cpp') diff --git a/src/settingsdialoggeneral.cpp b/src/settingsdialoggeneral.cpp index 265c9db9..374eb621 100644 --- a/src/settingsdialoggeneral.cpp +++ b/src/settingsdialoggeneral.cpp @@ -21,6 +21,11 @@ GeneralSettingsTab::GeneralSettingsTab(Settings& s, SettingsDialog& d) ui->hideDownloadInstallBox->setChecked( settings().interface().hideDownloadsAfterInstallation()); + // connect MODL button + QObject::connect(ui->associateModlButton, &QPushButton::clicked, [&] { + Settings::instance().registerAsMODLHandler(true); + }); + // updates ui->checkForUpdates->setChecked(settings().checkForUpdates()); ui->usePrereleaseBox->setChecked(settings().usePrereleases()); -- cgit v1.3.1