mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Show correct user data after undo/redo and commit change immediately
This commit is contained in:
parent
eb6b57c5fb
commit
f27836744f
@ -195,8 +195,9 @@ private:
|
||||
|
||||
void onPopupUserData() {
|
||||
if (m_cel) {
|
||||
m_userData = m_cel->data()->userData();
|
||||
if (show_user_data_popup(userData()->bounds(), m_userData)) {
|
||||
onStartTimer();
|
||||
onCommitChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,6 @@ public:
|
||||
}
|
||||
|
||||
void setLayer(LayerImage* layer) {
|
||||
// Save uncommited changes
|
||||
if (m_layer) {
|
||||
document()->removeObserver(this);
|
||||
m_layer = nullptr;
|
||||
@ -233,8 +232,9 @@ private:
|
||||
|
||||
void onPopupUserData() {
|
||||
if (m_layer) {
|
||||
m_userData = m_layer->userData();
|
||||
if (show_user_data_popup(userData()->bounds(), m_userData)) {
|
||||
onStartTimer();
|
||||
onCommitChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user