Skip to content

Commit

Permalink
Treat double-click in the remote file dialog differently from double-…
Browse files Browse the repository at this point in the history
…click in the Files view, thonny#1432
  • Loading branch information
aivarannamaa committed Nov 26, 2020
1 parent 890fa57 commit a498597
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thonny/base_file_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,10 @@ def __init__(self, master, dialog):
def open_file(self, path):
self.dialog.double_click_file(path)

def should_open_name_in_thonny(self, name):
# In dialog, all file types are to be opened in Thonny
return True


class BackendFileDialog(CommonDialog):
def __init__(self, master, kind, initial_dir):
Expand Down

0 comments on commit a498597

Please sign in to comment.