controlcenter fix

This commit is contained in:
tr1x_em committed 2025-08-11 19:24:12 +05:30
1 parent 0ff6862504
commit 0c91178aaf
2 files changed
+8 -7

No files matched your search

+7 -6
View File
@@ -173,10 +173,10 @@ class PlayerBoxStack(Box):
child.destroy() child.destroy()
except Exception as e: except Exception as e:
logger.warning(f"Failed to destroy player child: {e}") logger.warning(f"Failed to destroy player child: {e}")
# Reset to no media state # Reset to no media state
self.player_stack.children = [self.no_media_box] self.player_stack.children = [self.no_media_box]
# Clear player buttons # Clear player buttons
for button in self.player_buttons: for button in self.player_buttons:
try: try:
@@ -184,17 +184,18 @@ class PlayerBoxStack(Box):
except Exception: except Exception:
pass pass
self.player_buttons.clear() self.player_buttons.clear()
# Reset stack position # Reset stack position
self.current_stack_pos = 0 self.current_stack_pos = 0
# Clean up old cache files more aggressively # Clean up old cache files more aggressively
cleanup_old_cache_files() cleanup_old_cache_files()
# Force garbage collection # Force garbage collection
import gc import gc
gc.collect() gc.collect()
logger.debug("PlayerBoxStack enhanced cleanup completed") logger.debug("PlayerBoxStack enhanced cleanup completed")
except Exception as e: except Exception as e:
logger.warning(f"PlayerBoxStack enhanced cleanup failed: {e}") logger.warning(f"PlayerBoxStack enhanced cleanup failed: {e}")
+1 -1
View File
@@ -32,7 +32,7 @@
#outer-player-box-c { #outer-player-box-c {
min-height: 55px; min-height: 55px;
min-width: 282px; min-width: 245px;
border-radius: 8px; border-radius: 8px;
/* margin: 0 6px; */ /* margin: 0 6px; */
/* background-color: alpha(#000, 0.3); */ /* background-color: alpha(#000, 0.3); */