Skip to content

Commit

Permalink
FIXED: #108
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgosXou committed Apr 25, 2024
1 parent 73cb068 commit c36b871
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions TUIFIManager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ def suspend(self):


def __try_open_with(self, directory: str, open_with: Optional[str], multiple=False) -> None:
if not open_with:
return self.__set_label_on_file_selection()
if not open_with: return

dirs = []
if multiple: # puke-able shit lol xD, sorry for that
Expand All @@ -365,7 +364,6 @@ def __try_open_with(self, directory: str, open_with: Optional[str], multiple=Fal
proc = subprocess.Popen([open_with, *dirs], shell=IS_WINDOWS) # TODO: optional stdout=subprocess.DEVNULL when I'll add loading TUIFIProfiles from external file ?
proc.wait()
print(BEGIN_MOUSE, end='\r')
self.__set_label_on_file_selection()
return


Expand Down

0 comments on commit c36b871

Please sign in to comment.