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.
This commit is contained in:
itsmattkc
2020-07-22 10:33:06 +10:00
parent 4268ccd75e
commit 73769d9e85
+1
View File
@@ -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();