From 73769d9e8520f6b7e79954939d7fb3c8ee3dd0a2 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 22 Jul 2020 10:33:06 +1000 Subject: [PATCH] mainmenu: set snapping menu item's checked value on startup Since this action handles the key press, if it's checked value is not equal to the real value, it will be a no-op first before it "syncs" with the real value. --- app/window/mainwindow/mainmenu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/window/mainwindow/mainmenu.cpp b/app/window/mainwindow/mainmenu.cpp index 004b03877..07db2641b 100644 --- a/app/window/mainwindow/mainmenu.cpp +++ b/app/window/mainwindow/mainmenu.cpp @@ -262,6 +262,7 @@ MainMenu::MainMenu(MainWindow *parent) : tools_snapping_item_ = tools_menu_->AddItem("snapping", Core::instance(), &Core::SetSnapping, "S"); tools_snapping_item_->setCheckable(true); + tools_snapping_item_->setChecked(Core::instance()->snapping()); tools_menu_->addSeparator();