mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-19 19:21:08 +00:00
Fix bug when closing Undo History with a keyboard shortcut
Closes #1423 The bug was happening because when the Undo History window was closed using the keyboard shortcut, the message kCloseMessage was never being sent to the window. This is probably not the only cause, but making UndoHistoryCommand close the window instead of just hiding it solves the problem.
This commit is contained in:
parent
cf3814bc20
commit
e773f0697e
@ -246,7 +246,7 @@ void UndoHistoryCommand::onExecute(Context* ctx)
|
||||
g_window = new UndoHistoryWindow(ctx);
|
||||
|
||||
if (g_window->isVisible())
|
||||
g_window->setVisible(false);
|
||||
g_window->closeWindow(nullptr);
|
||||
else
|
||||
g_window->openWindow();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user