From: Calin Crisan Date: Sat, 5 Aug 2017 20:03:46 +0000 (+0300) Subject: hide snapshot button when still images are completely disabled X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=ad81ab22c9e8f66e543bed1fc667dbc7ae13574c;p=motioneye-debian hide snapshot button when still images are completely disabled --- 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'):