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.
This commit is contained in:
parent
a61544ea9c
commit
6cb6a2cf27
@ -779,6 +779,7 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
|
|||||||
SS.TW.GoToScreen(TextWindow::SCREEN_GROUP_INFO);
|
SS.TW.GoToScreen(TextWindow::SCREEN_GROUP_INFO);
|
||||||
SS.TW.shown.group = hg;
|
SS.TW.shown.group = hg;
|
||||||
SS.ScheduleShowTW();
|
SS.ScheduleShowTW();
|
||||||
|
ForceTextWindowShown();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -799,12 +800,14 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
|
|||||||
SS.TW.GoToScreen(TextWindow::SCREEN_STYLE_INFO);
|
SS.TW.GoToScreen(TextWindow::SCREEN_STYLE_INFO);
|
||||||
SS.TW.shown.style = hs;
|
SS.TW.shown.style = hs;
|
||||||
SS.ScheduleShowTW();
|
SS.ScheduleShowTW();
|
||||||
|
ForceTextWindowShown();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case CMNU_NEW_CUSTOM_STYLE: {
|
case CMNU_NEW_CUSTOM_STYLE: {
|
||||||
uint32_t v = Style::CreateCustomStyle();
|
uint32_t v = Style::CreateCustomStyle();
|
||||||
Style::AssignSelectionToStyle(v);
|
Style::AssignSelectionToStyle(v);
|
||||||
|
ForceTextWindowShown();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user