Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/robotide/ui/mainframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_menudata():
help_4 = _("!Report a Problem | Open browser to SEARCH on the RIDE issue tracker\n")
help_6 = _("!About | Information about RIDE\n")
help_7 = _("!Check for Upgrade | Looks at PyPi for new released version\n")

return (file_0 + file_1 + separator + file_2 + file_3 + file_4 + separator + file_5 + file_6 + separator +
file_7 + '\n' + tool_0 + tool_1 + tool_2 + tool_3 + tool_4 + '\n' + help_0 + help_1 + help_2 +
help_3 + help_4 + help_6 + help_7)
Expand Down Expand Up @@ -670,8 +670,12 @@ def refresh_datafile(self, item, event):
def on_open_directory(self, event):
__ = event
if self.check_unsaved_modifications():
path = wx.DirSelector(message=_("Choose a directory containing Robot files"),
default_path=self.controller.default_dir)
if wx.VERSION >= (4, 3, 0):
path = wx.DirSelector(message=_("Choose a directory containing Robot files"),
defaultPath=self.controller.default_dir)
else:
path = wx.DirSelector(message=_("Choose a directory containing Robot files"),
default_path=self.controller.default_dir)
if path:
self.open_suite(path)

Expand Down
Loading