From add4260a9b48dbada7217fc0ed46be312720415d Mon Sep 17 00:00:00 2001 From: Pepe44DEV Date: Sat, 30 May 2026 20:12:29 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20setup=20nicht=20in=20AGS=203.1,=20zur?= =?UTF-8?q?=C3=BCck=20zu=20onChanged=20+=20closure=20variablen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotfiles/hypr/ags/homelab.tsx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/dotfiles/hypr/ags/homelab.tsx b/dotfiles/hypr/ags/homelab.tsx index 768cebc..d7cc88a 100644 --- a/dotfiles/hypr/ags/homelab.tsx +++ b/dotfiles/hypr/ags/homelab.tsx @@ -1131,15 +1131,13 @@ function startRefreshTimer() { } function SetupView() { - let hostEntry: Gtk.Entry | null = null; - let userEntry: Gtk.Entry | null = null; - let portEntry: Gtk.Entry | null = null; + let host = ""; + let user = "root"; + let port = "22"; function doSave() { - if (!hostEntry || !userEntry || !portEntry) return; - const host = hostEntry.get_text(); if (!host) return; - saveConfig(host, userEntry.get_text() || "root", portEntry.get_text() || "22"); + saveConfig(host, user || "root", port || "22"); } return ( @@ -1149,24 +1147,24 @@ function SetupView() {