Skip to content

Commit

Permalink
[519] Fix Padding & Display Levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed May 26, 2024
1 parent ce45e5c commit 778ccae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion EDMarketConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def postprefs(self, dologin: bool = True, **postargs):
)
update_msg = update_msg.replace('\\n', '\n')
update_msg = update_msg.replace('\\r', '\r')
stable_popup = tk.messagebox.askyesno(title=title, message=update_msg)
stable_popup = tk.messagebox.askyesno(title=title, message=update_msg, parent=postargs.get('Parent'))
if stable_popup:
webbrowser.open("https://github.com/edCD/eDMarketConnector/releases/latest")

Expand Down
7 changes: 4 additions & 3 deletions prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def __setup_config_tab(self, notebook: ttk.Notebook) -> None: # noqa: CCR001
)

self.update_track.configure(width=15)
self.update_track.grid(column=1, pady=self.BOXY, sticky=tk.W, row=curr_row)
self.update_track.grid(column=1, pady=self.BOXY, padx=self.PADX, sticky=tk.W, row=curr_row)

self.disable_autoappupdatecheckingame = tk.IntVar(value=config.get_int('disable_autoappupdatecheckingame'))
self.disable_autoappupdatecheckingame_btn = nb.Checkbutton(
Expand Down Expand Up @@ -1262,8 +1262,9 @@ def apply(self) -> None:
# Send to the Post Config if we updated the update branch
post_flags = {
'Update': True if self.curr_update_track != self.update_paths.get() else False,
'Track': self.update_paths.get()
}
'Track': self.update_paths.get(),
'Parent': self
}
# Notify
if self.callback:
self.callback(**post_flags)
Expand Down

0 comments on commit 778ccae

Please sign in to comment.