Skip to content

Commit ef34fa2

Browse files
committed
Fix error where clear settings didn't work
1 parent 08ee94a commit ef34fa2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Background Scripts/camera_settings_check.applescript

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,19 @@ on clearSettings()
7373
end clearSettings
7474

7575
try
76-
set dialogAnswer to display dialog "Store current camera settings?" buttons {"Check", "Clear Settings", "Save"} default button 3 cancel button 2
76+
try
77+
set dialogAnswer to display dialog "Store current camera settings?" buttons {"Check", "Clear Settings", "Save"} default button 3 cancel button 2
78+
on error errMsg number errNum
79+
log "Clear Settings"
80+
clearSettings()
81+
end try
7782

7883
if button returned of dialogAnswer is "Save" then
84+
log "Save Settings"
7985
setSettings()
8086
else if button returned of dialogAnswer is "Check" then
87+
log "Check Settings"
8188
checkSettings()
82-
else if button returned of dialogAnswer is "Clear Settings" then
83-
8489
end if
8590
end try
8691

0 commit comments

Comments
 (0)