Revert animation support due to performance issues
This commit is contained in:
@@ -25,7 +25,6 @@ from shutil import rmtree
|
||||
|
||||
from gi.repository import Adw, GdkPixbuf, Gio, GLib, Gtk
|
||||
|
||||
from .display_animation import display_animation
|
||||
from .game import game
|
||||
from .get_games import get_games
|
||||
from .save_game import save_game
|
||||
@@ -100,8 +99,6 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
||||
self.active_game_id = None
|
||||
self.loading = None
|
||||
self.scaled_pixbuf = None
|
||||
self.current_anim_overview = None
|
||||
self.current_anim_edit = None
|
||||
|
||||
self.overview.set_measure_overlay(self.overview_box, True)
|
||||
self.overview.set_clip_overlay(self.overview_box, False)
|
||||
@@ -289,18 +286,6 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
||||
pixbuf = current_game.pixbuf
|
||||
self.overview_cover.set_pixbuf(pixbuf)
|
||||
|
||||
new_id = game_id if self.current_anim_overview != game_id else f"{game_id}_new"
|
||||
self.current_anim_overview = new_id
|
||||
|
||||
if current_game.animation_path.is_file():
|
||||
display_animation(
|
||||
self.overview_cover.set_pixbuf,
|
||||
current_game.animation_path,
|
||||
parent_widget=self,
|
||||
game_id=new_id,
|
||||
place="overview",
|
||||
)
|
||||
|
||||
self.scaled_pixbuf = pixbuf.scale_simple(2, 3, GdkPixbuf.InterpType.BILINEAR)
|
||||
self.overview_blurred_cover.set_pixbuf(self.scaled_pixbuf)
|
||||
self.set_overview_opacity()
|
||||
|
||||
Reference in New Issue
Block a user