mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-16 02:42:40 +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:
1 parent
a038b30855
commit
aafc419124
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user