From 6f64a658b3d24912d69fd89ccca341475ebdc07a Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Thu, 23 Mar 2023 19:50:43 -0400 Subject: Carry over state of include reblogs view toggle Correctly carry over the internal state of the "include reblogs" view toggle when enabling the "All toots" view toggle in the interface. There was a mismatch between the checkbox state of "include reblogs" in the UI and the internal state of view_filters when enabling the "All toots" view option after switching to another filter. --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 26df799..0437826 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -131,9 +131,10 @@ void MainWindow::relist_statuses() { } } +// Function used to reset filters when we have detected that the "All toots" toggle has been toggled on or shouldn't be toggled anymore void MainWindow::reset_view_filters() { if (ui->actionAll_toots->isChecked()) - view_filters = {true, true, true, true, true, view_filters.onlyWithAttachment}; + view_filters = {true, true, true, true, view_filters.includeReblogs, view_filters.onlyWithAttachment}; else view_filters = {false, false, false, false, view_filters.includeReblogs, view_filters.onlyWithAttachment}; } -- cgit v1.2.3-54-g00ecf