mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 04:13:50 +00:00
Fix Aseprite built-in file selector's file list layout to avoid horizontal scrolling (fix #4183)
This commit is contained in:
parent
62599ad8b4
commit
921504937c
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2019-2023 Igara Studio S.A.
|
// Copyright (C) 2019-2024 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -698,6 +698,12 @@ again:
|
|||||||
return (!output.empty());
|
return (!output.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FileSelector::onOpen(Event& ev)
|
||||||
|
{
|
||||||
|
app::gen::FileSelector::onOpen(ev);
|
||||||
|
onRefreshFolder();
|
||||||
|
}
|
||||||
|
|
||||||
bool FileSelector::onProcessMessage(ui::Message* msg)
|
bool FileSelector::onProcessMessage(ui::Message* msg)
|
||||||
{
|
{
|
||||||
switch (msg->type()) {
|
switch (msg->type()) {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
|
// Copyright (C) 2019-2024 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -46,6 +47,7 @@ namespace app {
|
|||||||
base::paths& output);
|
base::paths& output);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void onOpen(ui::Event& ev) override;
|
||||||
bool onProcessMessage(ui::Message* msg) override;
|
bool onProcessMessage(ui::Message* msg) override;
|
||||||
|
|
||||||
void updateLocation();
|
void updateLocation();
|
||||||
|
Loading…
Reference in New Issue
Block a user