changeset 26:d129cc8ee4eb

Fix bug #62626: banner from config not respected
author Luis Falcon <falcon@gnuhealth.org>
date Wed, 15 Jun 2022 12:06:00 +0100
parents a15bb8467ae8
children e130831d86c4
files gnuhealth/gui/window/dblogin.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnuhealth/gui/window/dblogin.py
+++ b/gnuhealth/gui/window/dblogin.py
@@ -415,7 +415,12 @@
         self.dialog.vbox.pack_start(grid, expand=True, fill=True, padding=0)
 
         image = Gtk.Image()
-        image.set_from_file(os.path.join(PIXMAPS_DIR, BANNER))
+        # Use custom banner if set in the custom_banner param
+        if (CONFIG['client.banner']):
+            image.set_from_file(CONFIG['client.banner'])
+        else:
+            image.set_from_file(os.path.join(PIXMAPS_DIR, BANNER))
+
         image.set_valign(Gtk.Align.START)
         overlay = Gtk.Overlay()
         overlay.add(image)