Forcibly show text window on some context menu actions.
Specifically: * Group Info * Style Info * Assign to Style → Newly Created Custom Style... These context actions are meaningless without viewing or manipulating text window.pull/4/head
parent
a61544ea9c
commit
6cb6a2cf27
|
@ -779,6 +779,7 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
|
|||
SS.TW.GoToScreen(TextWindow::SCREEN_GROUP_INFO);
|
||||
SS.TW.shown.group = hg;
|
||||
SS.ScheduleShowTW();
|
||||
ForceTextWindowShown();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -799,12 +800,14 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
|
|||
SS.TW.GoToScreen(TextWindow::SCREEN_STYLE_INFO);
|
||||
SS.TW.shown.style = hs;
|
||||
SS.ScheduleShowTW();
|
||||
ForceTextWindowShown();
|
||||
break;
|
||||
}
|
||||
|
||||
case CMNU_NEW_CUSTOM_STYLE: {
|
||||
uint32_t v = Style::CreateCustomStyle();
|
||||
Style::AssignSelectionToStyle(v);
|
||||
ForceTextWindowShown();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue