|
|
|
@ -194,36 +194,27 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* choose a file for command
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param {object} event
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
async handleSelectProgram(event) {
|
|
|
|
|
event.preventDefault()
|
|
|
|
|
|
|
|
|
|
let entry = await Neutralino.os.showOpenDialog('', {
|
|
|
|
|
// open dialog to choose a file that starts a programm
|
|
|
|
|
const entry = await Neutralino.os.showOpenDialog('Choose a File', {
|
|
|
|
|
'multiSelections': false,
|
|
|
|
|
'defaultPath': '/home/'
|
|
|
|
|
'defaultPath': NL_CWD
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// adding path to command in current
|
|
|
|
|
this.state.current.command = entry
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
handleRemoveThumbnail(event) {
|
|
|
|
|
event.preventDefault()
|
|
|
|
|
|
|
|
|
|
this.state.current.thumbnail = null
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
@ -248,6 +239,7 @@
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param object event
|
|
|
|
@ -255,12 +247,18 @@
|
|
|
|
|
*/
|
|
|
|
|
async handleSelectThumbnail(event)
|
|
|
|
|
{
|
|
|
|
|
const entry = await Neutralino.os.showOpenDialog('', {
|
|
|
|
|
const entry = await Neutralino.os.showOpenDialog('Choose a Thumbnail for App', {
|
|
|
|
|
'multiSelections': false,
|
|
|
|
|
'defaultPath': '/home/',
|
|
|
|
|
'defaultPath': NL_CWD,
|
|
|
|
|
'filters': [{
|
|
|
|
|
'name': 'Images',
|
|
|
|
|
'extensions': ['jpg', 'png', 'jpeg', 'webp', 'gif', 'md']
|
|
|
|
|
'extensions': [
|
|
|
|
|
'jpg',
|
|
|
|
|
'png',
|
|
|
|
|
'jpeg',
|
|
|
|
|
'webp',
|
|
|
|
|
'gif'
|
|
|
|
|
]
|
|
|
|
|
}]
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -273,6 +271,20 @@
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* remove current thumbnail for App
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param {object} event
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
handleRemoveThumbnail(event) {
|
|
|
|
|
event.preventDefault()
|
|
|
|
|
|
|
|
|
|
this.state.current.thumbnail = null
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
@ -283,6 +295,10 @@
|
|
|
|
|
return 'data:image/png;base64,' + media
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* reset data of current form
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
reset() {
|
|
|
|
|
this.state.current = {
|
|
|
|
|
|
|
|
|
|