aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorConfuSomu2023-03-23 19:50:43 -0400
committerConfuSomu2023-03-23 19:50:43 -0400
commit6f64a658b3d24912d69fd89ccca341475ebdc07a (patch)
treea964753772e1345c269f31ef4d47fefd3bd59df1 /src/mainwindow.cpp
parent4579089fde7d3c64ed98767714700f30e243e7ae (diff)
downloadActorViewer-6f64a658b3d24912d69fd89ccca341475ebdc07a.tar
ActorViewer-6f64a658b3d24912d69fd89ccca341475ebdc07a.tar.gz
ActorViewer-6f64a658b3d24912d69fd89ccca341475ebdc07a.zip
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.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
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};
}