mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-25 17:37:07 +02:00
[desktop] Fix game list name column starting out super small by default (#3610)
Unsure why but geometry is at 100x30 when this func is called. For now just use sane ish default of 840 Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3610 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
parent
12157214b6
commit
d8b2971a2e
1 changed files with 4 additions and 3 deletions
|
|
@ -1099,13 +1099,14 @@ void GameList::SaveInterfaceLayout() {
|
||||||
void GameList::LoadInterfaceLayout() {
|
void GameList::LoadInterfaceLayout() {
|
||||||
auto* header = tree_view->header();
|
auto* header = tree_view->header();
|
||||||
|
|
||||||
if (header->restoreState(UISettings::values.gamelist_header_state)) {
|
if (header->restoreState(UISettings::values.gamelist_header_state))
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
// We are using the name column to display icons and titles
|
// We are using the name column to display icons and titles
|
||||||
// so make it as large as possible as default.
|
// so make it as large as possible as default.
|
||||||
header->resizeSection(COLUMN_NAME, header->width());
|
|
||||||
|
// TODO(crueter): width() is not initialized yet, so use a sane default value
|
||||||
|
header->resizeSection(COLUMN_NAME, 840);
|
||||||
}
|
}
|
||||||
|
|
||||||
const QStringList GameList::supported_file_extensions = {
|
const QStringList GameList::supported_file_extensions = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue