Skip to content

Commit

Permalink
Fix for disabled folder watch running on startup (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
raivisdejus authored Nov 18, 2024
1 parent 3069512 commit c181a28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buzz/widgets/transcription_task_folder_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def set_preferences(self, preferences: FolderWatchPreferences):
def find_tasks(self):
input_directory = self.preferences.input_directory
tasks = {task.file_path: task for task in self.tasks.values()}

if not self.preferences.enabled:
return

for dirpath, dirnames, filenames in os.walk(input_directory):
for filename in filenames:
file_path = os.path.join(dirpath, filename)
Expand Down

0 comments on commit c181a28

Please sign in to comment.