diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-03-18 14:02:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 14:02:05 +0000 |
commit | 1893871a99d26955e411b0b5dba4d2fe4368d96e (patch) | |
tree | 998873a40d3da6622854b3fb84d973f7b29d70a3 /launcher/ui/pages/instance/ModFolderPage.cpp | |
parent | 8837f06e4e97ed966662b52db206facd7f91a489 (diff) | |
parent | 45b0367d14f38d40af5cc8603f7daab05d83af5f (diff) | |
download | PrismLauncher-1893871a99d26955e411b0b5dba4d2fe4368d96e.tar.gz PrismLauncher-1893871a99d26955e411b0b5dba4d2fe4368d96e.tar.bz2 PrismLauncher-1893871a99d26955e411b0b5dba4d2fe4368d96e.zip |
Merge branch 'PrismLauncher:develop' into mrpack-export
Diffstat (limited to 'launcher/ui/pages/instance/ModFolderPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/launcher/ui/pages/instance/ModFolderPage.cpp b/launcher/ui/pages/instance/ModFolderPage.cpp index d9069915..4548af59 100644 --- a/launcher/ui/pages/instance/ModFolderPage.cpp +++ b/launcher/ui/pages/instance/ModFolderPage.cpp @@ -273,3 +273,12 @@ bool CoreModFolderPage::shouldDisplay() const } return false; } + +NilModFolderPage::NilModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel> mods, QWidget* parent) + : ModFolderPage(inst, mods, parent) +{} + +bool NilModFolderPage::shouldDisplay() const +{ + return m_model->dir().exists(); +} |