mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Fix issue 408 saving the Import Sprite Sheet window position
This commit is contained in:
parent
303595689f
commit
33706ce6ff
@ -103,6 +103,10 @@ public:
|
||||
m_selectFile.DropDownClick.connect(&ImportSpriteSheetWindow::onDropDown, this);
|
||||
m_import.Click.connect(Bind<void>(&ImportSpriteSheetWindow::onImport, this));
|
||||
m_cancel.Click.connect(Bind<void>(&ImportSpriteSheetWindow::onCancel, this));
|
||||
|
||||
remapWindow();
|
||||
centerWindow();
|
||||
load_window_pos(this, "ImportSpriteSheet");
|
||||
}
|
||||
|
||||
~ImportSpriteSheetWindow()
|
||||
@ -269,6 +273,16 @@ protected:
|
||||
}
|
||||
}
|
||||
|
||||
bool onProcessMessage(ui::Message* msg) OVERRIDE
|
||||
{
|
||||
switch (msg->type()) {
|
||||
case kCloseMessage:
|
||||
save_window_pos(this, "ImportSpriteSheet");
|
||||
break;
|
||||
}
|
||||
return Window::onProcessMessage(msg);
|
||||
}
|
||||
|
||||
virtual void onBroadcastMouseMessage(WidgetsList& targets) OVERRIDE
|
||||
{
|
||||
Window::onBroadcastMouseMessage(targets);
|
||||
|
Loading…
x
Reference in New Issue
Block a user