mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Clean-up uses of statsEnabled()
This commit is contained in:
parent
ac018b0304
commit
9bc7d64140
@ -1062,7 +1062,7 @@ bool GuiView::restoreLayout()
|
||||
word_count_enabled_ = settings.value("word_count_enabled", true).toBool();
|
||||
char_count_enabled_ = settings.value("char_count_enabled", true).toBool();
|
||||
char_nb_count_enabled_ = settings.value("char_nb_count_enabled", true).toBool();
|
||||
stat_counts_->setVisible(word_count_enabled_ || char_count_enabled_ || char_nb_count_enabled_);
|
||||
stat_counts_->setVisible(statsEnabled());
|
||||
|
||||
if (guiApp->platformName() == "xcb") {
|
||||
QPoint pos = settings.value("pos", QPoint(50, 50)).toPoint();
|
||||
@ -5176,16 +5176,13 @@ bool GuiView::lfunUiToggle(string const & ui_component)
|
||||
zoom_widget_->setVisible(!zoom_widget_->isVisible());
|
||||
} else if (ui_component == "statistics-w") {
|
||||
word_count_enabled_ = !word_count_enabled_;
|
||||
if (statsEnabled())
|
||||
showStats();
|
||||
showStats();
|
||||
} else if (ui_component == "statistics-cb") {
|
||||
char_count_enabled_ = !char_count_enabled_;
|
||||
if (statsEnabled())
|
||||
showStats();
|
||||
showStats();
|
||||
} else if (ui_component == "statistics-c") {
|
||||
char_nb_count_enabled_ = !char_nb_count_enabled_;
|
||||
if (statsEnabled())
|
||||
showStats();
|
||||
showStats();
|
||||
} else if (ui_component == "frame") {
|
||||
int const l = contentsMargins().left();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user