From df11a2e80c1747500e0a18875808819c43bcd25c Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Sun, 13 Nov 2022 17:45:05 -0500 Subject: [PATCH] frontend: Minor improvements for drive selection (#2255) - Use FileChooserNative for drives - Reword title Co-authored-by: Fabrizio Pelosi --- bottles/frontend/windows/drives.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bottles/frontend/windows/drives.py b/bottles/frontend/windows/drives.py index 4e61d77a67..b1cf88c2cd 100644 --- a/bottles/frontend/windows/drives.py +++ b/bottles/frontend/windows/drives.py @@ -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() @@ -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):