1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-26 16:11:45 +00:00

FinderのActivity logをちゃんと取ってくる

This commit is contained in:
Rokt33r
2015-12-03 07:59:47 +09:00
parent ca7b9c786a
commit 364917c910
4 changed files with 20 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ import _ from 'lodash'
import dataStore from 'boost/dataStore'
const electron = require('electron')
const { remote, clipboard } = electron
const { remote, clipboard, ipcRenderer } = electron
var hideFinder = remote.getGlobal('hideFinder')
@@ -64,6 +64,7 @@ class FinderMain extends React.Component {
let { activeArticle } = this.props
clipboard.writeText(activeArticle.content)
ipcRenderer.send('copy-finder')
notify('Saved to Clipboard!', {
body: 'Paste it wherever you want!'
})

View File

@@ -29,6 +29,13 @@ ipc.on('notify', function (e, payload) {
})
})
ipc.on('copy-finder', function () {
activityRecord.emit('FINDER_COPY')
})
ipc.on('open-finder', function () {
activityRecord.emit('FINDER_OPEN')
})
let routes = (
<Route path='/' component={MainPage}>
<IndexRoute name='home' component={HomePage}/>