diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-06-01 12:28:53 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-01 12:28:53 +0200 |
commit | 932160818e8e15dc124e1ce281749d28e10c5e66 (patch) | |
tree | 1924f82fffccf54ef14cbfcd8a7f25ccda53daaf /application/MultiMC.cpp | |
parent | 59e1ed3d8750b499b6d515a82bc08f6f72cc456a (diff) | |
download | MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar.gz MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar.lz MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar.xz MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.zip |
NOISSUE add option to open global settings from instance settings
This should hopefully giude people towards using the right thing.
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r-- | application/MultiMC.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index f31c4ba5..179839fe 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -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) |