Skip to content

Commit 7dbc3c2

Browse files
authored
Fix: Hide toolbar in full screen
1 parent ac0a465 commit 7dbc3c2

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎scripts/dom.js‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,15 +2350,11 @@ async function openComic(animation = true, path = true, mainPath = true, end = f
23502350
// Start reading comic
23512351
if(config.readingStartReadingInFullScreen && !fromNextAndPrev && !fromGoBack)
23522352
{
2353-
let win = electronRemote.getCurrentWindow();
2354-
let isFullScreen = win.isFullScreen();
2353+
const win = electronRemote.getCurrentWindow();
2354+
const isFullScreen = win.isFullScreen();
23552355

23562356
if(!isFullScreen)
2357-
{
2358-
reading.hideContent(!isFullScreen);
2359-
win.setFullScreen(!isFullScreen);
2360-
win.setMenuBarVisibility(isFullScreen);
2361-
}
2357+
fullScreen(true);
23622358
}
23632359

23642360
reading.setIsLoaded(false);

0 commit comments

Comments
 (0)