Skip to content

Commit

Permalink
improve UI 5
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Mar 19, 2018
1 parent 9794a7d commit 8fe6c44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/RisohEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,11 @@ void MMainWnd::OnGuiEdit(HWND hwnd)
INT nID = (INT)dialog.DialogBoxDx(hwnd);
if (nID == IDOK)
{
bool shown = m_db.AreMacroIDShown();
m_db.ShowMacroID(false);
MStringW strWide = str_res.Dump(m_db);
m_db.ShowMacroID(shown);

if (CompileParts(hwnd, strWide))
{
ResEntry selection(RT_STRING, WORD(0), lang);
Expand Down Expand Up @@ -2764,7 +2768,11 @@ void MMainWnd::OnGuiEdit(HWND hwnd)
INT nID = (INT)dialog.DialogBoxDx(hwnd);
if (nID == IDOK)
{
bool shown = m_db.AreMacroIDShown();
m_db.ShowMacroID(false);
MStringW strWide = msg_res.Dump(m_db);
m_db.ShowMacroID(shown);

if (CompileParts(hwnd, strWide))
{
ResEntry selection(RT_MESSAGETABLE, WORD(0), lang);
Expand Down

0 comments on commit 8fe6c44

Please sign in to comment.