1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

Fixed bool usage

This commit is contained in:
A_D 2020-12-24 12:24:56 +02:00 committed by Athanasius
parent fad193eff1
commit 42a0c058ea

View File

@ -532,7 +532,7 @@ class AppWindow(object):
self.menubar.add_cascade(menu=self.help_menu)
if platform == 'win32':
# Must be added after at least one "real" menu entry
self.always_ontop = tk.BooleanVar(value=config.get_bool('always_ontop'))
self.always_ontop = tk.BooleanVar(value=bool(config.get_int('always_ontop')))
self.system_menu = tk.Menu(self.menubar, name='system', tearoff=tk.FALSE) # type: ignore # https://github.com/python/typeshed/issues/4658 # noqa: E501
self.system_menu.add_separator()
self.system_menu.add_checkbutton(label=_('Always on top'),