Skip to content

Commit

Permalink
Fix error where clear settings didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
emorydunn committed Jan 29, 2022
1 parent 08ee94a commit ef34fa2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Background Scripts/camera_settings_check.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,19 @@ on clearSettings()
end clearSettings

try
set dialogAnswer to display dialog "Store current camera settings?" buttons {"Check", "Clear Settings", "Save"} default button 3 cancel button 2
try
set dialogAnswer to display dialog "Store current camera settings?" buttons {"Check", "Clear Settings", "Save"} default button 3 cancel button 2
on error errMsg number errNum
log "Clear Settings"
clearSettings()
end try

if button returned of dialogAnswer is "Save" then
log "Save Settings"
setSettings()
else if button returned of dialogAnswer is "Check" then
log "Check Settings"
checkSettings()
else if button returned of dialogAnswer is "Clear Settings" then

end if
end try

0 comments on commit ef34fa2

Please sign in to comment.