mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-17 07:10:36 +00:00
Update the status bar depending on the Editor text when the tool changes
It fixes a problem were PaletteView was clearing the StatusBar set by the Editor when a quicktool keyboard shortcut was pressed.
This commit is contained in:
parent
93c616cd7b
commit
97ebd70048
@ -1362,6 +1362,7 @@ void Editor::onInvalidateRegion(const gfx::Region& region)
|
|||||||
void Editor::onActiveToolChange(tools::Tool* tool)
|
void Editor::onActiveToolChange(tools::Tool* tool)
|
||||||
{
|
{
|
||||||
m_state->onActiveToolChange(this, tool);
|
m_state->onActiveToolChange(this, tool);
|
||||||
|
updateStatusBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Editor::onFgColorChange()
|
void Editor::onFgColorChange()
|
||||||
|
@ -280,7 +280,8 @@ bool PaletteView::onProcessMessage(Message* msg)
|
|||||||
case kKeyDownMessage:
|
case kKeyDownMessage:
|
||||||
case kKeyUpMessage:
|
case kKeyUpMessage:
|
||||||
case kMouseEnterMessage:
|
case kMouseEnterMessage:
|
||||||
updateCopyFlag(msg);
|
if (hasMouse())
|
||||||
|
updateCopyFlag(msg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kMouseDownMessage:
|
case kMouseDownMessage:
|
||||||
|
Loading…
Reference in New Issue
Block a user