Update stats display if a stat is (un)selected

This commit is contained in:
Juergen Spitzmueller 2022-08-18 19:08:03 +02:00
parent 1182687991
commit 0515bfa989

View File

@ -5028,13 +5028,19 @@ bool GuiView::lfunUiToggle(string const & ui_component)
zoom_slider_->setVisible(!zoom_slider_->isVisible());
zoom_in_->setVisible(zoom_slider_->isVisible());
zoom_out_->setVisible(zoom_slider_->isVisible());
} else if (ui_component == "statistics-w")
} else if (ui_component == "statistics-w") {
word_count_enabled_ = !word_count_enabled_;
else if (ui_component == "statistics-cb")
if (statsEnabled())
showStats();
} else if (ui_component == "statistics-cb") {
char_count_enabled_ = !char_count_enabled_;
else if (ui_component == "statistics-c")
if (statsEnabled())
showStats();
} else if (ui_component == "statistics-c") {
char_nb_count_enabled_ = !char_nb_count_enabled_;
else if (ui_component == "frame") {
if (statsEnabled())
showStats();
} else if (ui_component == "frame") {
int const l = contentsMargins().left();
//are the frames in default state?