diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 92c0f4919..cfa68ce75 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -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") diff --git a/prefs.py b/prefs.py index cdbb4fc47..5567e0942 100644 --- a/prefs.py +++ b/prefs.py @@ -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( @@ -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)