Skip to content

Commit

Permalink
frontend: Minor improvements for drive selection (#2255)
Browse files Browse the repository at this point in the history
- Use FileChooserNative for drives
- Reword title

Co-authored-by: Fabrizio Pelosi <[email protected]>
  • Loading branch information
TheEvilSkeleton and tesfabpel authored Nov 13, 2022
1 parent 40d6c6f commit df11a2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bottles/frontend/windows/drives.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __choose_path(self, *_args):
"""
def set_path(_dialog, response, _file_dialog):
_file = _file_dialog.get_file()
if _file is None or response != Gtk.ResponseType.OK:
if _file is None or response != -3:
_dialog.destroy()
return
path = _file.get_path()
Expand All @@ -72,11 +72,11 @@ def set_path(_dialog, response, _file_dialog):

FileChooser(
parent=self.parent.window,
title=_("Choose path"),
title=_("Select Drive Path"),
action=Gtk.FileChooserAction.SELECT_FOLDER,
buttons=(_("Cancel"), _("Select")),
callback=set_path,
native=False
native=True
)

def __remove(self, *_args):
Expand Down

0 comments on commit df11a2e

Please sign in to comment.