Fix Aseprite built-in file selector's file list layout to avoid horizontal scrolling (fix #4183)

This commit is contained in:
Martín Capello 2024-01-18 17:25:31 -03:00 committed by David Capello
parent 62599ad8b4
commit 921504937c
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2019-2023 Igara Studio S.A.
// Copyright (C) 2019-2024 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
@ -698,6 +698,12 @@ again:
return (!output.empty());
}
void FileSelector::onOpen(Event& ev)
{
app::gen::FileSelector::onOpen(ev);
onRefreshFolder();
}
bool FileSelector::onProcessMessage(ui::Message* msg)
{
switch (msg->type()) {

View File

@ -1,4 +1,5 @@
// Aseprite
// Copyright (C) 2019-2024 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
@ -46,6 +47,7 @@ namespace app {
base::paths& output);
private:
void onOpen(ui::Event& ev) override;
bool onProcessMessage(ui::Message* msg) override;
void updateLocation();