From 6cb6a2cf27288e1c8262a3abe75cb890f86d1964 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 17 Apr 2016 14:51:53 +0000 Subject: [PATCH] Forcibly show text window on some context menu actions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specifically: * Group Info * Style Info * Assign to Style → Newly Created Custom Style... These context actions are meaningless without viewing or manipulating text window. --- src/mouse.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mouse.cpp b/src/mouse.cpp index 79fc0fde..46b3b747 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -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; }