Skip to content

Commit

Permalink
Save the current URI to user_prefs when closing AliasLaunchWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
MHendricks committed Oct 4, 2023
1 parent 4ebf028 commit 113fe71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hab_gui/windows/alias_launch_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ def __init__(
self.setFixedWidth(400)
self.center_window_position()

def closeEvent(self, event): # noqa: N802
"""Saves the currently selected URI on close if prefs are enabled."""
self.resolver.user_prefs().uri = self.uri_widget.uri()
super().closeEvent(event)

def load_entry_point(self, name, default, allow_none=False):
"""Work function that loads the requested entry_point."""

Expand Down

0 comments on commit 113fe71

Please sign in to comment.