mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Connect to BrushPopup::BrushChange just one time
This commit is contained in:
parent
2932add184
commit
f5b7fd84dc
@ -67,6 +67,7 @@ public:
|
||||
, m_bitmap(BrushPopup::createSurfaceForBrush(BrushRef(nullptr)))
|
||||
, m_popupWindow(this) {
|
||||
addItem(m_bitmap);
|
||||
m_popupWindow.BrushChange.connect(&BrushTypeField::onBrushChange, this);
|
||||
}
|
||||
|
||||
~BrushTypeField() {
|
||||
@ -131,7 +132,6 @@ private:
|
||||
m_popupWindow.setHotRegion(rgn);
|
||||
|
||||
m_popupWindow.openWindow();
|
||||
m_popupWindow.BrushChange.connect(&BrushTypeField::onBrushChange, this);
|
||||
}
|
||||
|
||||
void closePopup() {
|
||||
|
Loading…
Reference in New Issue
Block a user