lib/alexandria/ui/dialogs/acquire_dialog.rb in alexandria-book-collection-manager-0.7.0 vs lib/alexandria/ui/dialogs/acquire_dialog.rb in alexandria-book-collection-manager-0.7.1

- old
+ new

@@ -234,12 +234,11 @@ def on_cancel @acquire_dialog.destroy end - def on_help - end + def on_help; end def read_barcode_scan @animation.start play_sound('scanning') if @test_scan log.debug { "reading scanner data #{@scanner_buffer}" } @@ -533,10 +532,10 @@ end def play_sound(effect) if effect == 'scanning' puts "Effect: #{effect}, playing: #{@prefs.play_scanning_sound}" if $DEBUG - return unless @prefs.play_scanning_sound + return unless @prefs.play_scanning_sound @sound_players['scanning'].play('scanning') else puts "Effect: #{effect}, playing: #{@prefs.play_scan_sound}" if $DEBUG return unless @prefs.play_scan_sound # sleep(0.5) # "scanning" effect lasts 0.5 seconds, wait for it to end