From 8548074be45dcfcd92893e6223f5f5204e300988 Mon Sep 17 00:00:00 2001 From: blinry Date: Thu, 29 Oct 2020 20:34:28 +0100 Subject: [PATCH] Always play pop sounds for commits and refs --- scenes/node.gd | 2 +- scenes/shell.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/node.gd b/scenes/node.gd index 16e970e..8cec44a 100644 --- a/scenes/node.gd +++ b/scenes/node.gd @@ -19,7 +19,7 @@ var arrow = preload("res://scenes/arrow.tscn") func _ready(): content_set(content) 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.play() diff --git a/scenes/shell.gd b/scenes/shell.gd index 3a00b03..be1cc53 100644 --- a/scenes/shell.gd +++ b/scenes/shell.gd @@ -18,7 +18,7 @@ func cd(dir): # Run a shell command given as a string. Run this if you're interested in the # output of the command. func run(command, crash_on_fail=true): - var debug = true + var debug = false if debug: print("$ %s" % command)