Skip to content

Commit

Permalink
Fixed deactivated "Show file in" for stories in transcriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
octimot committed Feb 20, 2024
1 parent e5ae0cd commit 00d3648
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions storytoolkitai/ui/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ def toggle_file_menu_items():
# make sure we know which window is focused etc.
self.update_current_window_references()

# disable the "Show file in ..." for now
self.filemenu.entryconfig("Show file in " + self.file_browser_name, state=DISABLED)

if self.toolkit_UI_obj.current_project is None:
self.filemenu.entryconfig('Export current project...', state=DISABLED)
self.filemenu.entryconfig('Close current project', state=DISABLED)
Expand Down Expand Up @@ -314,7 +317,6 @@ def toggle_file_menu_items():
self.filemenu.entryconfig('Export transcript as Fusion Text...', state=DISABLED)
self.filemenu.entryconfig(link_transcription_project_index,
label="Link transcription to project", state=DISABLED)
self.filemenu.entryconfig("Show file in " + self.file_browser_name, state=DISABLED)

if self.current_window_type == 'story_editor':

Expand Down Expand Up @@ -360,7 +362,6 @@ def toggle_file_menu_items():
self.filemenu.entryconfig('Export story as EDL or FCP7XML...', state=DISABLED)
self.filemenu.entryconfig(link_story_project_index,
label='Link story to project', state=DISABLED)
self.filemenu.entryconfig("Show file in " + self.file_browser_name, state=DISABLED)

# add a postcommand to the file menu to enable/disable menu items depending on the current window
self.filemenu.configure(postcommand=toggle_file_menu_items)
Expand Down

0 comments on commit 00d3648

Please sign in to comment.