aboutsummaryrefslogtreecommitdiff
path: root/qdeduper
diff options
context:
space:
mode:
Diffstat (limited to 'qdeduper')
-rw-r--r--qdeduper/mingui.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/qdeduper/mingui.cpp b/qdeduper/mingui.cpp
index 29cf416..4f5b854 100644
--- a/qdeduper/mingui.cpp
+++ b/qdeduper/mingui.cpp
@@ -146,6 +146,7 @@ DeduperMainWindow::DeduperMainWindow()
QTimer::singleShot(5, [this, i] {
lv->scrollTo(im->index(i, 0), QAbstractItemView::ScrollHint::PositionAtTop);});
}
+ menuact["single_mode_toggle"]->setChecked(id->is_single_item_mode());
});
selhk.push_back(ca);
}
@@ -303,6 +304,14 @@ void DeduperMainWindow::setup_menu()
this->addAction(skip);
view->addSeparator();
+ QAction *singlemode = view->addAction("Single Item Mode");
+ singlemode->setCheckable(true);
+ menuact["single_mode_toggle"] = singlemode;
+ QObject::connect(singlemode, &QAction::triggered, [this] (bool c) {
+ id->set_single_item_mode(c);
+ });
+
+ view->addSeparator();
QMenu *sort = view->addMenu("Sort by");
sort->addAction("File size");
sort->addAction("Image dimension");