made server address configurable

This commit is contained in:
Ide
2025-12-28 13:59:00 +01:00
parent f413f27bf0
commit a97cd03eb3
7 changed files with 175 additions and 37 deletions
+8 -15
View File
@@ -10,22 +10,10 @@ import {
TextEdit,
GridBox,
} from "std-widgets.slint";
import { SettingsView } from "settings.slint";
import { State, SItem } from "state.slint";
export { State, SItem }
export struct SItem {
name: string,
checked: bool,
}
export global State {
in-out property <[SItem]> list: [
{ name: "Test 1", checked: true },
{ name: "Test 2", checked: false },
{ name: "Test 3", checked: false },
];
callback add-to-list(string);
callback check-item(string);
callback delete-checked();
}
component GoodListItem inherits Rectangle {
in-out property <SItem> item;
@@ -141,6 +129,11 @@ export component App inherits Window {
preferred-height: 700px;
preferred-width: 480px;
TabWidget {
Tab {
title: "Settings";
SettingsView { }
}
Tab {
title: "Add";
AddView {