fix(GUI): make the image selection window a modal (#932) (#1009)

The image selection dialog is attached to the parent window so it is a modal.

Change-Type: patch
Changelog-Entry: Make the image file picker attach to the main window.
This commit is contained in:
Alexis Svinartchouk 2017-01-10 22:39:34 +01:00 committed by Juan Cruz Viotti
parent 54b93a56d2
commit b6333067f9

View File

@ -40,7 +40,8 @@ module.exports = function($q, SupportedFormatsModel) {
*/
this.selectImage = () => {
return $q((resolve, reject) => {
electron.remote.dialog.showOpenDialog({
const currentWindow = electron.remote.getCurrentWindow();
electron.remote.dialog.showOpenDialog(currentWindow, {
// This variable is set when running in GNU/Linux from
// inside an AppImage, and represents the working directory