Rename "fullscreenMode" boolean to "isFullscreenMode"

This commit is contained in:
Rafał Dzięgiel
2021-02-16 17:11:29 +01:00
parent 887f189b60
commit e79ce58b26
2 changed files with 14 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ class ClapperWidget extends Gtk.Grid
this.windowSize = JSON.parse(settings.get_string('window-size'));
this.layoutWidth = 0;
this.fullscreenMode = false;
this.isFullscreenMode = false;
this.isSeekable = false;
this.isMobileMonitor = false;
@@ -100,17 +100,17 @@ class ClapperWidget extends Gtk.Grid
const root = this.get_root();
if(!root) return;
const un = (this.fullscreenMode) ? 'un' : '';
const un = (this.isFullscreenMode) ? 'un' : '';
root[`${un}fullscreen`]();
}
setFullscreenMode(isFullscreen)
{
if(this.fullscreenMode === isFullscreen)
if(this.isFullscreenMode === isFullscreen)
return;
debug('changing fullscreen mode');
this.fullscreenMode = isFullscreen;
this.isFullscreenMode = isFullscreen;
const root = this.get_root();
const action = (isFullscreen) ? 'add' : 'remove';
@@ -527,7 +527,7 @@ class ClapperWidget extends Gtk.Grid
_onLeave(controller)
{
if(
this.fullscreenMode
this.isFullscreenMode
|| this.player.isWidgetDragging
)
return;