Commit ec4ffbb6 authored by Alex Brazier's avatar Alex Brazier Committed by GitHub

[FIX] MacOS dmg build (#597)

* Fix mac dmg build

* Fix window state issue
parent 256e3ce2
......@@ -29,6 +29,7 @@ branches:
only:
- master
- develop
- hotfix
notifications:
email:
......
......@@ -2,7 +2,7 @@
"name": "rocketchat",
"productName": "Rocket.Chat+",
"description": "Rocket.Chat Native Cross-Platform Desktop Application via Electron.",
"version": "2.10.0",
"version": "2.10.1",
"author": "Rocket.Chat Support <support@rocket.chat>",
"copyright": "© 2017, Rocket.Chat",
"homepage": "https://rocket.chat",
......
name: rocketchat-desktop
version: 2.10.0
version: 2.10.1
summary: Rocket.Chat+
description: Rocket.Chat Native Cross-Platform Desktop Application via Electron.
confinement: strict
......
......@@ -17,7 +17,7 @@ export default function (name, defaults) {
try {
const loadedState = userDataDir.read(stateStoreFile, 'json');
if (loadedState != null) {
if (loadedState) {
state = loadedState;
}
} catch (err) {
......@@ -41,10 +41,10 @@ export default function (name, defaults) {
};
return {
get x () { return Math.floor(state.x); },
get y () { return Math.floor(state.y); },
get width () { return Math.floor(state.width); },
get height () { return Math.floor(state.height); },
get x () { return state.x && Math.floor(state.x); },
get y () { return state.y && Math.floor(state.y); },
get width () { return state.width && Math.floor(state.width); },
get height () { return state.height && Math.floor(state.height); },
get isMaximized () { return state.isMaximized; },
get isMinimized () { return state.isMinimized; },
get isHidden () { return state.isHidden; },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment