[TD]add preference for auto workbench switch

This commit is contained in:
wandererfan
2024-11-19 17:52:34 -05:00
committed by WandererFan
parent 7c15b3d240
commit 1ef62a1de8
4 changed files with 255 additions and 225 deletions

View File

@@ -651,3 +651,8 @@ void Preferences::setBalloonDragModifiers(Qt::KeyboardModifiers newModifiers)
}
//! if true, automatically switch to TD workbench when a Page is set in edit (double click)
bool Preferences::switchOnClick()
{
return getPreferenceGroup("General")->GetBool("SwitchToWB", true);
}