1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

EDMarketConnector: Initialise self.updater with type, but None value

This allows the type to be known, but leaves the proper setting of the
value until later (after UI creation).
This commit is contained in:
Athanasius 2020-10-12 14:43:53 +01:00
parent a038b30855
commit aafc419124

View File

@ -361,6 +361,10 @@ class AppWindow(object):
for child in frame.winfo_children():
child.grid_configure(padx=5, pady=(platform != 'win32' or isinstance(child, tk.Frame)) and 2 or 0)
# The type needs defining for adding the menu entry, but won't be
# properly set until later
self.updater: update.Updater = None
self.menubar = tk.Menu()
if platform == 'darwin':
# Can't handle (de)iconify if topmost is set, so suppress iconify button