mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 09:08:42 +00:00
NOISSUE add option to open global settings from instance settings
This should hopefully giude people towards using the right thing.
This commit is contained in:
@@ -66,6 +66,8 @@
|
||||
#include <ganalytics.h>
|
||||
#include <sys.h>
|
||||
|
||||
#include "pagedialog/PageDialog.h"
|
||||
|
||||
|
||||
#if defined Q_OS_WIN32
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
@@ -1088,6 +1090,20 @@ void MultiMC::controllerFailed(const QString& error)
|
||||
}
|
||||
}
|
||||
|
||||
void MultiMC::ShowGlobalSettings(class QWidget* parent, QString open_page)
|
||||
{
|
||||
if(!m_globalSettingsProvider) {
|
||||
return;
|
||||
}
|
||||
emit globalSettingsAboutToOpen();
|
||||
{
|
||||
SettingsObject::Lock lock(MMC->settings());
|
||||
PageDialog dlg(m_globalSettingsProvider.get(), open_page, parent);
|
||||
dlg.exec();
|
||||
}
|
||||
emit globalSettingsClosed();
|
||||
}
|
||||
|
||||
MainWindow* MultiMC::showMainWindow(bool minimized)
|
||||
{
|
||||
if(m_mainWindow)
|
||||
|
Reference in New Issue
Block a user