From b20e5dbd49aebf1436fa44635c3582ece5df53f5 Mon Sep 17 00:00:00 2001 From: gryf Date: Mon, 2 Oct 2023 15:25:07 +0200 Subject: [PATCH] Use the configuration. --- gtkpass.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtkpass.py b/gtkpass.py index acd407b..c9e796c 100755 --- a/gtkpass.py +++ b/gtkpass.py @@ -20,11 +20,16 @@ class GTKPass(Gtk.Window): self.passs = PassStore() self.passs.gather_pass_tree() + self.conf = self.passs.conf self._border = 5 self._expand = False self.make_ui() def make_ui(self): + if (self.conf.get('ui', {}).get('width') and + self.conf.get('ui', {}).get('height')): + self.set_size_request(self.conf['ui']['width'], + self.conf['ui']['height']) self.set_resizable(True) self.set_border_width(self._border)