diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-07-15 01:07:21 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-07-15 01:07:21 +0200 |
commit | 80b3efff11a34e2df7d1bc4cc3187e6aaf57e687 (patch) | |
tree | 0e09e162ccc24decf6e10397b2fb3963da1d364d /application/pages/instance/ModFolderPage.h | |
parent | e4273d6a174ffb771728f32b5e2a8a36096c4e21 (diff) | |
download | PrismLauncher-80b3efff11a34e2df7d1bc4cc3187e6aaf57e687.tar.gz PrismLauncher-80b3efff11a34e2df7d1bc4cc3187e6aaf57e687.tar.bz2 PrismLauncher-80b3efff11a34e2df7d1bc4cc3187e6aaf57e687.zip |
NOISSUE Do not hide mods list pages when the instance is running.
Instead, disable (most of) the controls.
Diffstat (limited to 'application/pages/instance/ModFolderPage.h')
-rw-r--r-- | application/pages/instance/ModFolderPage.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/application/pages/instance/ModFolderPage.h b/application/pages/instance/ModFolderPage.h index 2c9dd2d3..77fe877d 100644 --- a/application/pages/instance/ModFolderPage.h +++ b/application/pages/instance/ModFolderPage.h @@ -67,18 +67,19 @@ protected: bool modListFilter(QKeyEvent *ev); protected: - BaseInstance *m_inst; + BaseInstance *m_inst = nullptr; protected: - Ui::ModFolderPage *ui; + Ui::ModFolderPage *ui = nullptr; std::shared_ptr<SimpleModList> m_mods; - QSortFilterProxyModel *m_filterModel; + QSortFilterProxyModel *m_filterModel = nullptr; QString m_iconName; QString m_id; QString m_displayName; QString m_helpName; QString m_fileSelectionFilter; QString m_viewFilter; + bool m_controlsEnabled = true; public slots: @@ -87,6 +88,7 @@ slots: private slots: void on_filterTextChanged(const QString & newContents); + void on_RunningState_changed(bool running); void on_addModBtn_clicked(); void on_rmModBtn_clicked(); void on_viewModBtn_clicked(); |