From 2f27d9fa177c515f2613bd9ceb558f09554cfbd2 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 22 Sep 2021 17:31:17 +0200 Subject: [PATCH] v1.0.5 Bug fixes --- CHANGELOG.md | 8 ++++++++ src/btop.cpp | 2 +- src/btop_menu.cpp | 6 ++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98e9fec..9585360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## v1.0.5 + +* Fixed: Load AVG sizing when hiding temperatures + +* Fixed: Sizing constraints bug on start and boxes can be toggled from size error screen + +* Fixed: UTF-8 check crashing if LANG was set to non existant locale + ## v1.0.4 * Fixed: Use /proc/pid/statm if RSS memory from /proc/pid/stat is faulty diff --git a/src/btop.cpp b/src/btop.cpp index b551cc0..b968993 100644 --- a/src/btop.cpp +++ b/src/btop.cpp @@ -55,7 +55,7 @@ namespace Global { {"#801414", "██████╔╝ ██║ ╚██████╔╝██║ ╚═╝ ╚═╝"}, {"#000000", "╚═════╝ ╚═╝ ╚═════╝ ╚═╝"}, }; - const string Version = "1.0.4"; + const string Version = "1.0.5"; int coreCount; string overlay; diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index c81d31b..b166c1e 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -1341,8 +1341,10 @@ namespace Menu { menuMask.reset(); menuMask.set(SizeError); } - for (const auto& i : iota(0, (int)menuMask.size())) { - if (menuMask.test(i)) currentMenu = i; + else { + for (const auto& i : iota(0, (int)menuMask.size())) { + if (menuMask.test(i)) currentMenu = i; + } } }