mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Fix layout bug when a file cannot be opened from the recent list in HomeView
This commit is contained in:
parent
cee355ee61
commit
8fbf0854b0
@ -21,12 +21,13 @@
|
||||
#include "base/bind.h"
|
||||
#include "base/path.h"
|
||||
#include "ui/graphics.h"
|
||||
#include "ui/listitem.h"
|
||||
#include "ui/link_label.h"
|
||||
#include "ui/listitem.h"
|
||||
#include "ui/message.h"
|
||||
#include "ui/paint_event.h"
|
||||
#include "ui/preferred_size_event.h"
|
||||
#include "ui/system.h"
|
||||
#include "ui/view.h"
|
||||
|
||||
namespace app {
|
||||
|
||||
@ -100,6 +101,12 @@ void RecentListBox::rebuildList()
|
||||
removeChild(getLastChild());
|
||||
|
||||
onRebuildList();
|
||||
|
||||
View* view = View::getView(this);
|
||||
if (view)
|
||||
view->layout();
|
||||
else
|
||||
layout();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user