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
whitequark 2016-04-17 14:51:53 +00:00
parent a61544ea9c
commit 6cb6a2cf27
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}