aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/MainWindow.cpp
diff options
context:
space:
mode:
authorMarcelo Hernandez <marcelohdez.inq@gmail.com>2022-10-22 23:04:36 -0400
committerMarcelo Hernandez <marcelohdez.inq@gmail.com>2022-10-23 19:30:41 -0400
commit15593b5c0912b4fe5ad77d6a27e336e9b68ed861 (patch)
tree8ccc4422d0d168744cee5b9bc3b5cfa6a75488b0 /launcher/ui/MainWindow.cpp
parente7e56eb1e397a528df91f9ce99f738c49bde363c (diff)
downloadPrismLauncher-15593b5c0912b4fe5ad77d6a27e336e9b68ed861.tar.gz
PrismLauncher-15593b5c0912b4fe5ad77d6a27e336e9b68ed861.tar.bz2
PrismLauncher-15593b5c0912b4fe5ad77d6a27e336e9b68ed861.zip
Add "Select all" checkbox + ui revamp + code cleanup
Signed-off-by: Marcelo Hernandez <marcelohdez.inq@gmail.com>
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
-rw-r--r--launcher/ui/MainWindow.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index d51f799c..08005b86 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1616,17 +1616,7 @@ void MainWindow::on_actionCopyInstance_triggered()
if (!copyInstDlg.exec())
return;
- auto copyTask = new InstanceCopyTask(
- m_selectedInstance,
- InstanceCopyPrefs {
- copyInstDlg.shouldCopySaves(),
- copyInstDlg.shouldKeepPlaytime(),
- copyInstDlg.shouldCopyGameOptions(),
- copyInstDlg.shouldCopyResourcePacks(),
- copyInstDlg.shouldCopyShaderPacks(),
- copyInstDlg.shouldCopyServers(),
- copyInstDlg.shouldCopyMods()
- });
+ auto copyTask = new InstanceCopyTask(m_selectedInstance, copyInstDlg.getChosenOptions());
copyTask->setName(copyInstDlg.instName());
copyTask->setGroup(copyInstDlg.instGroup());
copyTask->setIcon(copyInstDlg.iconKey());