diff options
| author | 2021-06-04 00:07:38 +0100 | |
|---|---|---|
| committer | 2021-06-03 19:07:38 -0400 | |
| commit | cb5fe12ee1f1537caea2fced30d14a812082440b (patch) | |
| tree | 97addec0c55a0cc18d1e62511839ec6df0c001dc /src | |
| parent | Merge pull request #6402 from Kelebek1/UI (diff) | |
| download | yuzu-cb5fe12ee1f1537caea2fced30d14a812082440b.tar.gz yuzu-cb5fe12ee1f1537caea2fced30d14a812082440b.tar.xz yuzu-cb5fe12ee1f1537caea2fced30d14a812082440b.zip | |
[game_list] Correct light theme loading (#6408)
Correct light theme loading
The setLayout call in game list instantiation will call resizing signals with default values in light theme, which was then being erroneously saved. setLayout doesn't seem to call resizing for any other theme, so I'm not sure why that happens.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index c2e84ef79..9308cfef8 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -341,11 +341,7 @@ GameList::GameList(FileSys::VirtualFilesystem vfs, FileSys::ManualContentProvide | |||
| 341 | connect(tree_view, &QTreeView::customContextMenuRequested, this, &GameList::PopupContextMenu); | 341 | connect(tree_view, &QTreeView::customContextMenuRequested, this, &GameList::PopupContextMenu); |
| 342 | connect(tree_view, &QTreeView::expanded, this, &GameList::OnItemExpanded); | 342 | connect(tree_view, &QTreeView::expanded, this, &GameList::OnItemExpanded); |
| 343 | connect(tree_view, &QTreeView::collapsed, this, &GameList::OnItemExpanded); | 343 | connect(tree_view, &QTreeView::collapsed, this, &GameList::OnItemExpanded); |
| 344 | connect(tree_view->header(), &QHeaderView::sectionResized, this, | 344 | |
| 345 | &GameList::SaveInterfaceLayout); | ||
| 346 | connect(tree_view->header(), &QHeaderView::sectionMoved, this, &GameList::SaveInterfaceLayout); | ||
| 347 | connect(tree_view->header(), &QHeaderView::sortIndicatorChanged, this, | ||
| 348 | &GameList::SaveInterfaceLayout); | ||
| 349 | // We must register all custom types with the Qt Automoc system so that we are able to use | 345 | // We must register all custom types with the Qt Automoc system so that we are able to use |
| 350 | // it with signals/slots. In this case, QList falls under the umbrells of custom types. | 346 | // it with signals/slots. In this case, QList falls under the umbrells of custom types. |
| 351 | qRegisterMetaType<QList<QStandardItem*>>("QList<QStandardItem*>"); | 347 | qRegisterMetaType<QList<QStandardItem*>>("QList<QStandardItem*>"); |