aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/builds.yml2
-rw-r--r--game/src/MusicConductor/MusicConductor.gd3
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml
index bd8ca20..69ea324 100644
--- a/.github/workflows/builds.yml
+++ b/.github/workflows/builds.yml
@@ -1,6 +1,6 @@
name: Builds
-#on: [pull_request]
+on: [pull_request]
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos
diff --git a/game/src/MusicConductor/MusicConductor.gd b/game/src/MusicConductor/MusicConductor.gd
index 1dfa95d..c0cfc46 100644
--- a/game/src/MusicConductor/MusicConductor.gd
+++ b/game/src/MusicConductor/MusicConductor.gd
@@ -58,7 +58,8 @@ func select_previous_song() -> void:
func _ready():
var dir = DirAccess.open(music_directory)
for fname in dir.get_files():
- if !fname.ends_with(".import"):
+ if fname.ends_with(".import"):
+ fname = fname.get_basename()
if fname.get_basename() == first_song_name:
_selected_track = _available_songs.size()
_available_songs.append(SongInfo.new(music_directory, fname))