]> uap-core.de Git - rssreader.git/commitdiff
implement cert path file dialog
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 20 Aug 2025 15:18:22 +0000 (17:18 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 20 Aug 2025 15:18:22 +0000 (17:18 +0200)
rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt

index 831eccfaf2057309490d08f0da30fa74d39efb39..f61500a35f1edaab13efbd4016c03583c7cbd149 100644 (file)
@@ -20,9 +20,6 @@ class MainWindow {
                     sourcelist(fill = true, varname = "feeds") { elm: FeedCollection ->
                         val item = SubListItem()
                         item.label = elm.name
-                        item.buttonIcon = "folder"
-                        item.buttonLabel = "Test"
-                        item.badge = "123"
                         item
                     }
                     hbox(margin = 4, spacing = 4) {
@@ -90,6 +87,9 @@ class MainWindow {
             groups = ui.list<FeedGroup>()
             name = ui.string()
             urls = ui.text()
+            user = ui.string()
+            password = ui.string()
+            cert = ui.string()
 
             groups.addAll(sourceList.groups)
 
@@ -130,7 +130,10 @@ class MainWindow {
                     textfield(value = cert, hexpand = true)
                     button(icon = "document-open") {
                         openFileDialog(ui) { event ->
-                            
+                            val files = event.fileListEventData;
+                            if(files.size > 0) {
+                                cert!!.setString(files[0])
+                            }
                         }
                     }
                 }