Mercurial > minori
diff src/gui/widgets/sidebar.cc @ 112:80f49f623d30
locale: allow switching locales without restarting
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 06 Nov 2023 13:41:30 -0500 |
parents | 9b2b41f83a5e |
children | 4d461ef7d424 |
line wrap: on
line diff
--- a/src/gui/widgets/sidebar.cc Mon Nov 06 02:03:55 2023 -0500 +++ b/src/gui/widgets/sidebar.cc Mon Nov 06 13:41:30 2023 -0500 @@ -24,6 +24,10 @@ setCurrentRow(AddSeparatorsToIndex(index)); } +int SideBar::GetCurrentItem() { + return RemoveSeparatorsFromIndex(currentRow()); +} + void SideBar::SetBackgroundColor(QColor color) { viewport()->setAutoFillBackground(color != Qt::transparent); QPalette pal(palette());