Skip to content

Commit

Permalink
Fix for disabled folder watch running on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
raivisdejus committed Nov 18, 2024
1 parent 3069512 commit 58b5a26
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 58b5a26

Please sign in to comment.