Skip to content

Commit

Permalink
Alert + Win600
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Jul 31, 2022
1 parent 97fb9cd commit 53c6dd7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,18 @@ const createWindow = async () => {
return path.join(RESOURCES_PATH, ...paths);
};

const { screen } = require('electron')
const primaryDisplay = screen.getPrimaryDisplay()
const { width, height } = primaryDisplay.workAreaSize
const screenHeight = height < 601 ? 600 : 720;
const isFullscreen = height < 601 ? true : false;
mainWindow = new BrowserWindow({
show: false,
width: 1280,
height: 600,
height: screenHeight,
icon: getAssetPath('icon.png'),
resizable: true,
fullscreen: false,
resizable: false,
fullscreen: isFullscreen,
autoHideMenuBar: true,
webPreferences: {
preload: app.isPackaged
Expand Down Expand Up @@ -180,6 +185,8 @@ app
.whenReady()
.then(() => {
createWindow();


app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/WelcomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const WelcomePage = () => {

return (
<Welcome
data={data}
alert="This version of EmuDeck comes with a mayor update of the PS2 Emulator, please update your PS2 games using Steam Rom Manager at the end of this installation."
disabledNext={second ? false : disabledNext}
disabledBack={disabledBack}
downloadComplete={downloadComplete}
Expand Down

0 comments on commit 53c6dd7

Please sign in to comment.