mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
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:
parent
54b93a56d2
commit
b6333067f9
@ -40,7 +40,8 @@ module.exports = function($q, SupportedFormatsModel) {
|
|||||||
*/
|
*/
|
||||||
this.selectImage = () => {
|
this.selectImage = () => {
|
||||||
return $q((resolve, reject) => {
|
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
|
// This variable is set when running in GNU/Linux from
|
||||||
// inside an AppImage, and represents the working directory
|
// inside an AppImage, and represents the working directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user