mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
minor fixes
This commit is contained in:
@@ -136,7 +136,8 @@ class GameScreen:
|
||||
for zip in self.textures:
|
||||
for texture in self.textures[zip]:
|
||||
ray.unload_texture(texture)
|
||||
audio.unload_sound(self.song_music)
|
||||
if self.song_music is not None:
|
||||
audio.unload_sound(self.song_music)
|
||||
del self.song_music
|
||||
self.song_started = False
|
||||
self.end_ms = 0
|
||||
|
||||
@@ -1396,11 +1396,11 @@ class FileNavigator:
|
||||
self.items.append(item)
|
||||
i += 1
|
||||
|
||||
if not has_children:
|
||||
self.box_open = True
|
||||
end_box = content_items[-1].box
|
||||
if selected_item in self.items:
|
||||
self.items.remove(selected_item)
|
||||
if not has_children:
|
||||
self.box_open = True
|
||||
end_box = content_items[-1].box
|
||||
if selected_item in self.items:
|
||||
self.items.remove(selected_item)
|
||||
# OPTIMIZED: Use cached crowns (calculated on-demand)
|
||||
for item in self.items:
|
||||
if isinstance(item, Directory):
|
||||
|
||||
Reference in New Issue
Block a user