From a3499e9b4708ff52a215482295867de932baf8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 24 Mar 2021 21:20:15 +0100 Subject: [PATCH] Remove unused variable --- src/app.js | 9 +++------ src/playerBase.js | 7 ++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/app.js b/src/app.js index b27e66f3..eb2e2dee 100644 --- a/src/app.js +++ b/src/app.js @@ -23,18 +23,15 @@ class ClapperApp extends AppBase super.vfunc_startup(); const window = this.active_window; - - window.isClapperApp = true; - window.add_css_class('nobackground'); - const clapperWidget = new Widget(); - window.set_child(clapperWidget); - const dummyHeaderbar = new Gtk.Box({ can_focus: false, focusable: false, visible: false, }); + + window.add_css_class('nobackground'); + window.set_child(clapperWidget); window.set_titlebar(dummyHeaderbar); } diff --git a/src/playerBase.js b/src/playerBase.js index 25554392..7afe5b19 100644 --- a/src/playerBase.js +++ b/src/playerBase.js @@ -151,9 +151,7 @@ class ClapperPlayerBase extends GstClapper.Clapper break; case 'render-shadows': root = this.widget.get_root(); - /* Editing theme of someone else app is taboo */ - if(!root || !root.isClapperApp) - break; + if(!root) break; const gpuClass = 'gpufriendly'; const renderShadows = settings.get_boolean(key); @@ -177,8 +175,7 @@ class ClapperPlayerBase extends GstClapper.Clapper break; case 'dark-theme': root = this.widget.get_root(); - if(!root || !root.isClapperApp) - break; + if(!root) break; root.application._onThemeChanged(Gtk.Settings.get_default()); break;