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:
parent
a038b30855
commit
aafc419124
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user