Always play pop sounds for commits and refs

This commit is contained in:
blinry 2020-10-29 20:34:28 +01:00
parent c53f6aa009
commit 8548074be4
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ var arrow = preload("res://scenes/arrow.tscn")
func _ready(): func _ready():
content_set(content) content_set(content)
type_set(type) type_set(type)
if not repository.simplified_view: if not repository.simplified_view or (type != "tree" and type != "blob"):
$Pop.pitch_scale = rand_range(0.8, 1.2) $Pop.pitch_scale = rand_range(0.8, 1.2)
$Pop.play() $Pop.play()

View file

@ -18,7 +18,7 @@ func cd(dir):
# Run a shell command given as a string. Run this if you're interested in the # Run a shell command given as a string. Run this if you're interested in the
# output of the command. # output of the command.
func run(command, crash_on_fail=true): func run(command, crash_on_fail=true):
var debug = true var debug = false
if debug: if debug:
print("$ %s" % command) print("$ %s" % command)