From ad47769e461db6f3d7c223b12f4d21f92dff6760 Mon Sep 17 00:00:00 2001 From: numzero Date: Sun, 25 Oct 2026 13:28:34 +0300 Subject: [PATCH] drop updateViewIf() it is useless, radio button groups have the signal actually needed --- ui/src/main_window.cxx | 5 ----- ui/src/main_window.hxx | 1 - 2 files changed, 6 deletions(-) diff --git a/ui/src/main_window.cxx b/ui/src/main_window.cxx index f328606..5640218 100644 --- a/ui/src/main_window.cxx +++ b/ui/src/main_window.cxx @@ -21,9 +21,4 @@ void PROJECTNAME::updateView() { m_ui->viewport->setView(args); } -void PROJECTNAME::updateViewIf(bool update) { - if (update) - updateView(); -} - #include "moc_main_window.cpp" diff --git a/ui/src/main_window.hxx b/ui/src/main_window.hxx index 1b75e58..13edb16 100644 --- a/ui/src/main_window.hxx +++ b/ui/src/main_window.hxx @@ -16,7 +16,6 @@ public: public slots: void updateView(); - void updateViewIf(bool update); // for radio buttons private: const std::unique_ptr m_ui;