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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user