From ad81ab22c9e8f66e543bed1fc667dbc7ae13574c Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 5 Aug 2017 23:03:46 +0300 Subject: [PATCH] hide snapshot button when still images are completely disabled --- motioneye/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motioneye/config.py b/motioneye/config.py index 56b1643..b87fe8d 100644 --- a/motioneye/config.py +++ b/motioneye/config.py @@ -1607,7 +1607,7 @@ def get_action_commands(camera_config): if os.access(path, os.X_OK): action_commands[action] = path - if camera_config.get('@manual_snapshots'): + if camera_config.get('@manual_snapshots') and bool(camera_config.get('snapshot_filename')): action_commands['snapshot'] = True if camera_config.get('@manual_record'): -- 2.39.5