From 7370184595f495a0776b36ff9495db776feb9083 Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Fri, 29 Aug 2025 21:21:36 +0200 Subject: [PATCH] show item category --- .../src/main/kotlin/de/unixwork/rssreader/FeedList.kt | 2 ++ .../src/main/kotlin/de/unixwork/rssreader/MainWindow.kt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt b/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt index d7bff02..b2e7c1d 100644 --- a/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt +++ b/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt @@ -14,6 +14,7 @@ class FeedList : Document() { val author = string("author") val linkstr = string("link") val link = UiLinkData(linkstr) + val category = string("category") val webview = webview("webview") val tabview = integer("tabview") @@ -63,6 +64,7 @@ class FeedList : Document() { feedName.setString(item.feedName) author.setString(item.author) link.set(item.link, item.link) + category.setString(item.category ?: "") var mimeType: String? = null var content: String? = null diff --git a/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt b/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt index 4cc0abc..27f49c2 100644 --- a/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt +++ b/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt @@ -105,6 +105,10 @@ class MainWindow { rlabel("Link:", hfill = true) linkbutton(varname = "link", styleClass = "ui-nopadding"); } + row { + rlabel("Category: ", hfill = true) + llabel(varname = "category") + } row { webview(varname = "webview", hfill = true, vfill = true, hexpand = true, vexpand = true, colspan = 2) -- 2.47.3