diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 20 | ||||
-rw-r--r-- | gui/main-window.hpp | 2 |
2 files changed, 1 insertions, 21 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index be7ddbe3..b09b70d0 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -122,10 +122,6 @@ MainWindow::MainWindow() : this, [&]() -> void { qDebug() << "restart tracker"; stopTracker(); startTracker(); }, Qt::QueuedConnection); - // this sort of makes sense since the cancel button on the mapping window - // emits this signal. - connect(s.b_map.get(), &bundle_type::reloading, this, &MainWindow::reload_splines); - // tray { init_tray_menu(); @@ -262,20 +258,6 @@ void MainWindow::save_modules() m.b->save(); } -void MainWindow::load_mappings() -{ - pose.load_mappings(); - if (mapping_widget) - mapping_widget->reload(); -} - -void MainWindow::load_settings() -{ - m.b->reload(); - s.b->reload(); - load_mappings(); -} - void MainWindow::make_empty_config() { QString name; @@ -644,7 +626,7 @@ void MainWindow::profile_selected(const QString& name) save_modules(); set_profile(new_name); set_title(); - load_settings(); + options::detail::bundler::refresh_all_bundles(); } } diff --git a/gui/main-window.hpp b/gui/main-window.hpp index a74575c9..6923c119 100644 --- a/gui/main-window.hpp +++ b/gui/main-window.hpp @@ -78,8 +78,6 @@ class MainWindow : public QMainWindow, private State return modules.filters().value(ui.iconcomboFilter->currentIndex(), nullptr); } - void load_settings(); - void load_mappings(); void updateButtonState(bool running, bool inertialp); void display_pose(const double* mapped, const double* raw); void ensure_tray(); |