aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/ftb/FtbPage.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-10-13 13:49:06 -0300
committerflow <flowlnlnln@gmail.com>2022-10-13 13:49:06 -0300
commitf26be005716818b643a0c8b1373dbe83e4cdcfbf (patch)
tree68e7955f4dc13f0c393b282efad9f98c44dcb57d /launcher/ui/pages/modplatform/ftb/FtbPage.cpp
parent83654a193e8856e00bcdbe4f87d209e52c380a62 (diff)
downloadPrismLauncher-f26be005716818b643a0c8b1373dbe83e4cdcfbf.tar.gz
PrismLauncher-f26be005716818b643a0c8b1373dbe83e4cdcfbf.tar.bz2
PrismLauncher-f26be005716818b643a0c8b1373dbe83e4cdcfbf.zip
fix: abort search if we're already trying to download a pack
Meaning we don't have to wait for the searches to finish in the background to finally start the modpack download, when we have already selected it -_- Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/ftb/FtbPage.cpp')
-rw-r--r--launcher/ui/pages/modplatform/ftb/FtbPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/ftb/FtbPage.cpp b/launcher/ui/pages/modplatform/ftb/FtbPage.cpp
index 8975d74e..1fe28124 100644
--- a/launcher/ui/pages/modplatform/ftb/FtbPage.cpp
+++ b/launcher/ui/pages/modplatform/ftb/FtbPage.cpp
@@ -114,6 +114,12 @@ void FtbPage::openedImpl()
suggestCurrent();
}
+void FtbPage::closedImpl()
+{
+ if (listModel->isMakingRequest())
+ listModel->abortRequest();
+}
+
void FtbPage::suggestCurrent()
{
if(!isOpened)