mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +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_bitmap(BrushPopup::createSurfaceForBrush(BrushRef(nullptr)))
|
||||||
, m_popupWindow(this) {
|
, m_popupWindow(this) {
|
||||||
addItem(m_bitmap);
|
addItem(m_bitmap);
|
||||||
|
m_popupWindow.BrushChange.connect(&BrushTypeField::onBrushChange, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
~BrushTypeField() {
|
~BrushTypeField() {
|
||||||
@ -131,7 +132,6 @@ private:
|
|||||||
m_popupWindow.setHotRegion(rgn);
|
m_popupWindow.setHotRegion(rgn);
|
||||||
|
|
||||||
m_popupWindow.openWindow();
|
m_popupWindow.openWindow();
|
||||||
m_popupWindow.BrushChange.connect(&BrushTypeField::onBrushChange, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void closePopup() {
|
void closePopup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user