]> uap-core.de Git - rssreader.git/commitdiff
show item category
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Fri, 29 Aug 2025 19:21:36 +0000 (21:21 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Fri, 29 Aug 2025 19:21:36 +0000 (21:21 +0200)
rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt
rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt

index d7bff024bcf819122468a6bebfa24b63bc51d432..b2e7c1da3cf035f4eaf479f797975e1203bcba76 100644 (file)
@@ -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
index 4cc0abcae98cf34b1764797c3111a9115a04dd23..27f49c2011b0a4cdef7f9aa3d7c6d1da7dc709c1 100644 (file)
@@ -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)