From 5083bedf57bc4b00f3a7fd9d16192a0adbfe2e0f Mon Sep 17 00:00:00 2001 From: Angoosh Date: Wed, 17 Sep 2025 12:11:34 +0200 Subject: [PATCH] possibly fixd everything --- com.angoosh.RDPConnect/main.py | 12 ++++++++---- com.angoosh.RDPConnect/preferences.ui | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/com.angoosh.RDPConnect/main.py b/com.angoosh.RDPConnect/main.py index 15badd5..ffdfb79 100755 --- a/com.angoosh.RDPConnect/main.py +++ b/com.angoosh.RDPConnect/main.py @@ -47,7 +47,7 @@ def load_keys(): fernet = Fernet(cryptoKey) def load_config(): - global conn_info, settings + global conn_info, settings, hist_info loaded_json = "" try: with open(HOMEDIR+"/.config/rdpconnect/history.json", "r") as history_file: @@ -83,6 +83,7 @@ def load_config(): print("[WARN] FILE: "+HOMEDIR+"/.config/rdpconnect/settings.json doesn't exist") class HistoryWindow(Gtk.Window): + global hist_info def __init__(self, **kargs): super().__init__(**kargs, title='History') @@ -102,6 +103,8 @@ class HistoryWindow(Gtk.Window): self.set_child(self.scroll) + self.show() + def addRow(self, entry, index): runb = Gtk.Button(label=entry) runb.connect("clicked", self.apply_contents) @@ -234,6 +237,7 @@ class PreferencesWindow(Gtk.Window): class MyApp(Adw.Application): + global hist_info def __init__(self, **kwargs): super().__init__(**kwargs) self.connect('activate', self.on_activate) @@ -293,9 +297,9 @@ class MyApp(Adw.Application): action.connect('activate', self.on_about) self.add_action(action) - action = Gio.SimpleAction(name='history') - action.connect('activate', self.on_history) - self.add_action(action) + #action = Gio.SimpleAction(name='history') + #action.connect('activate', self.on_history) + #self.add_action(action) def on_about(self, action, param): about_dialog = Gtk.AboutDialog(transient_for=self.win, modal=True) diff --git a/com.angoosh.RDPConnect/preferences.ui b/com.angoosh.RDPConnect/preferences.ui index 185ac08..6725121 100644 --- a/com.angoosh.RDPConnect/preferences.ui +++ b/com.angoosh.RDPConnect/preferences.ui @@ -1,4 +1,4 @@ -. +