Skip to content

Commit

Permalink
UI: ProgramsWindow: Check value from ini
Browse files Browse the repository at this point in the history
  • Loading branch information
tnodir committed Dec 30, 2024
1 parent 83ccfa8 commit 81b5c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/form/prog/programswindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ QLayout *ProgramsWindow::setupSortStatesLayout()
m_btSortAlerted = createCheckableToolButton(
":/icons/error.png", [&] { onSortStateClicked(AppListModel::SortAlerted); });

appListModel()->setSortState(AppListModel::SortState(iniUser()->progWindowSortState()));
appListModel()->setSortState(qBound(AppListModel::SortNone,
AppListModel::SortState(iniUser()->progWindowSortState()), AppListModel::SortAlerted));

const auto refreshSortStates = [&] {
const auto sortState = appListModel()->sortState();
Expand Down

0 comments on commit 81b5c2a

Please sign in to comment.