Skip to content

Commit

Permalink
Enable quick-setup button for Comguard in API window
Browse files Browse the repository at this point in the history
  • Loading branch information
aussig committed Oct 3, 2023
1 parent f15c826 commit 9005bd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v3.2.0-xx - xxxx-xx-xx

### New Features:

* Added quick-setup button for Comguard in API configuration window.

### API Changes ([v1.2](https://studio-ws.apicur.io/sharing/281a84ad-dca9-42da-a08b-84e4b9af1b7e)):

* `/events` endpoint: Ensure `StationFaction` is not overwritten if it is already present from the journal event. Note that this means `StationFaction` can now be _either_ a string or a dict.
Expand Down
11 changes: 6 additions & 5 deletions bgstally/windows/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ def show(self, parent_frame:tk.Frame = None):
self.cb_apievents.configure(command=partial(self._field_edited, self.cb_apievents))
self.cb_apievents.state(['selected', '!alternate'] if self.api.events_enabled else ['!selected', '!alternate'])

# tk.Label(frame_main, text="Shortcuts for Popular Servers").grid(row=current_row, column=0, sticky=tk.NW, pady=4)
tk.Label(frame_main, text="Shortcuts for Popular Servers").grid(row=current_row, column=0, sticky=tk.NW, pady=4)
frame_connection_buttons:ttk.Frame = ttk.Frame(frame_main)
frame_connection_buttons.grid(row=current_row, column=1, pady=4, sticky=tk.EW)
frame_connection_buttons.grid(row=current_row, column=1, pady=4, sticky=tk.EW); current_row += 1
# tk.Button(frame_connection_buttons, image=self.image_logo_dcoh, height=28, bg="Gray13", command=partial(self._autofill, 'dcoh')).pack(side=tk.LEFT, padx=4)
# tk.Button(frame_connection_buttons, image=self.image_logo_comguard, height=28, bg="Gray13", command=partial(self._autofill, 'comguard')).pack(side=tk.LEFT, padx=4)
self.btn_fetch = tk.Button(frame_connection_buttons, text="Establish Connection", command=partial(self._discover))
self.btn_fetch.pack(side=tk.RIGHT, padx=5, pady=5)
tk.Button(frame_connection_buttons, image=self.image_logo_comguard, height=28, bg="Gray13", command=partial(self._autofill, 'comguard')).pack(side=tk.LEFT, padx=4)

self.btn_fetch = tk.Button(frame_main, text="Establish Connection", command=partial(self._discover))
self.btn_fetch.grid(row=current_row, column=1, pady=4, sticky=tk.W)

self.frame_information:CollapsibleFrame = CollapsibleFrame(frame_container, show_button=False, open=False)
self.frame_information.pack(fill=tk.BOTH, padx=5, pady=5, expand=1)
Expand Down

0 comments on commit 9005bd7

Please sign in to comment.