mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
The notification of 'Copy to Clipboard' must be slient
This commit is contained in:
@@ -29,7 +29,6 @@ function hideFinder () {
|
|||||||
function notify (title, options) {
|
function notify (title, options) {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
options.icon = path.join('file://', global.__dirname, '../../resources/app.png')
|
options.icon = path.join('file://', global.__dirname, '../../resources/app.png')
|
||||||
options.silent = false
|
|
||||||
}
|
}
|
||||||
return new window.Notification(title, options)
|
return new window.Notification(title, options)
|
||||||
}
|
}
|
||||||
@@ -96,7 +95,8 @@ class FinderMain extends React.Component {
|
|||||||
|
|
||||||
ipcRenderer.send('copy-finder')
|
ipcRenderer.send('copy-finder')
|
||||||
notify('Saved to Clipboard!', {
|
notify('Saved to Clipboard!', {
|
||||||
body: 'Paste it wherever you want!'
|
body: 'Paste it wherever you want!',
|
||||||
|
silent: true
|
||||||
})
|
})
|
||||||
hideFinder()
|
hideFinder()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user