aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/VersionSelectWidget.cpp
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-04-05 20:27:31 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-04-15 15:37:07 -0400
commit2cb242e9b3174137b5ff97d3781ae253e8208843 (patch)
tree9177b783e37be4fcd00f2f52718bb1cb8ee0f914 /launcher/ui/widgets/VersionSelectWidget.cpp
parent7aeccbb6b0e5f0af01c98d4dc5eb322888a45900 (diff)
downloadPrismLauncher-2cb242e9b3174137b5ff97d3781ae253e8208843.tar.gz
PrismLauncher-2cb242e9b3174137b5ff97d3781ae253e8208843.tar.bz2
PrismLauncher-2cb242e9b3174137b5ff97d3781ae253e8208843.zip
Show no loader selected message when add instance window first opens
This resolves an issue where the message only shows when selecting a mod loader and then selecting "None" again.
Diffstat (limited to 'launcher/ui/widgets/VersionSelectWidget.cpp')
-rw-r--r--launcher/ui/widgets/VersionSelectWidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/launcher/ui/widgets/VersionSelectWidget.cpp b/launcher/ui/widgets/VersionSelectWidget.cpp
index 1209f118..cc4fc6a2 100644
--- a/launcher/ui/widgets/VersionSelectWidget.cpp
+++ b/launcher/ui/widgets/VersionSelectWidget.cpp
@@ -4,7 +4,6 @@
#include <QVBoxLayout>
#include <QHeaderView>
-#include "VersionListView.h"
#include "VersionProxyModel.h"
#include "ui/dialogs/CustomMessageBox.h"
@@ -57,6 +56,11 @@ void VersionSelectWidget::setEmptyErrorString(QString emptyErrorString)
listView->setEmptyErrorString(emptyErrorString);
}
+void VersionSelectWidget::setEmptyMode(VersionListView::EmptyMode mode)
+{
+ listView->setEmptyMode(mode);
+}
+
VersionSelectWidget::~VersionSelectWidget()
{
}