Skip to content

Commit

Permalink
Merge branch 'release/2.13.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Sep 10, 2018
2 parents 640e4f9 + 65f7c03 commit 8ba1bd0
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 53 deletions.
11 changes: 11 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<a name="2.13.2"></a>
## 2.13.2 (2018-09-10)


### Bug Fixes
- Dependencies updated
- Window state persistency triggering redefined
- AppId for Windows setups recovered
- Linux package names fixed
- Fixed multiple issues in provisioning profiles and entitlements for MacOS builds

<a name="2.13.1"></a>
## 2.13.1 (2018-08-30)

Expand Down
7 changes: 7 additions & 0 deletions build/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION un.AddAppData
!endif

!macro customInstall
; Remove dangling references of versions 2.13.0 and 2.13.1
SetRegView 64
DeleteRegKey HKLM "Software\9b73a9fb-f1d5-59ee-b41e-e1dd393a748a"
Delete "$SMSTARTUP\Rocket.Chat+.lnk"
!macroend

!macro customUnInstall
${IfNot} ${Silent}
Delete "$SMSTARTUP\Rocket.Chat.lnk"
Expand Down
Binary file added embedded.provisionprofile
Binary file not shown.
Binary file removed snap/gui/icon.png
Binary file not shown.
9 changes: 0 additions & 9 deletions snap/gui/rocketchat-desktop.desktop

This file was deleted.

38 changes: 0 additions & 38 deletions snap/snapcraft.yaml

This file was deleted.

9 changes: 5 additions & 4 deletions src/background/mainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { app, BrowserWindow, ipcMain, nativeImage } from 'electron';
import url from 'url';
import path from 'path';
import { debounce } from 'lodash';

import windowStateKeeper from './windowState';
import env from '../env';
Expand Down Expand Up @@ -58,13 +59,13 @@ const attachWindowStateHandling = (mainWindow) => {
mainWindowState.saveState(mainWindow);
});

mainWindow.on('resize', function () {
mainWindow.on('resize', debounce(() => {
mainWindowState.saveState(mainWindow);
});
}), 1000);

mainWindow.on('move', function () {
mainWindow.on('move', debounce(() => {
mainWindowState.saveState(mainWindow);
});
}), 1000);
};

const attachIpcMessageHandling = (mainWindow) => {
Expand Down
3 changes: 1 addition & 2 deletions src/background/windowState.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import { app } from 'electron';
import jetpack from 'fs-jetpack';
import { debounce } from 'lodash';

export default function (name, defaults) {

Expand Down Expand Up @@ -62,7 +61,7 @@ export default function (name, defaults) {
get isMaximized () { return state.isMaximized; },
get isMinimized () { return state.isMinimized; },
get isHidden () { return state.isHidden; },
saveState: debounce(saveState, 1000),
saveState,
loadState
};
}

0 comments on commit 8ba1bd0

Please sign in to comment.