]> www.vanbest.org Git - motioneye-debian/commitdiff
hide snapshot button when still images are completely disabled
authorCalin Crisan <ccrisan@gmail.com>
Sat, 5 Aug 2017 20:03:46 +0000 (23:03 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 5 Aug 2017 20:03:46 +0000 (23:03 +0300)
motioneye/config.py

index 56b1643ccf716e985f2d51e8a3195b074c8674c2..b87fe8d6080c43463bcb1455e29f806e90f4ce89 100644 (file)
@@ -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'):