Remove unused variable

This commit is contained in:
Rafał Dzięgiel
2021-03-24 21:20:15 +01:00
parent 4a60e01131
commit a3499e9b47
2 changed files with 5 additions and 11 deletions

View File

@@ -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);
}

View File

@@ -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;