From 8a80ca34592a56cd0b5f42cacdac4e32e73131d3 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Thu, 21 Jul 2016 22:12:32 +0200 Subject: [PATCH] Properly check windows controls --- Mailnag/configuration/configwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailnag/configuration/configwindow.py b/Mailnag/configuration/configwindow.py index c841c7e..b25a235 100644 --- a/Mailnag/configuration/configwindow.py +++ b/Mailnag/configuration/configwindow.py @@ -74,7 +74,7 @@ class ConfigWindow: self._headerbar = builder.get_object("headerbar") - if len(left) <= len(right): + if left.count(",") <= right.count(","): self._headerbar.pack_start(self._switch_daemon_enabled) else: self._headerbar.pack_end(self._switch_daemon_enabled)