Another wayland fix attempt

This commit is contained in:
Anuken
2026-02-12 09:12:19 -05:00
parent 24ee7a6af3
commit 0a066fbef7
2 changed files with 3 additions and 3 deletions

View File

@@ -84,8 +84,8 @@ public class DatabaseDialog extends BaseDialog{
for(var contents : allContent){
for(var content : contents){
if(content instanceof UnlockableContent u){
var categoryContents = sortedContents.get(u.databaseCategory, new OrderedMap<>());
var taggedContents = categoryContents.get(u.databaseTag, new Seq<>());
var categoryContents = sortedContents.get(u.databaseCategory == null ? u.getContentType().name() : u.databaseCategory, new OrderedMap<>());
var taggedContents = categoryContents.get(u.databaseTag == null ? "default" : u.databaseTag, new Seq<>());
taggedContents.add(u);
categoryContents.put(u.databaseTag, taggedContents);
sortedContents.put(u.databaseCategory, categoryContents);