mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix focusing bug
This commit is contained in:
@@ -30,12 +30,21 @@ function toggleFinder () {
|
||||
finderWindow.show()
|
||||
}
|
||||
} else {
|
||||
if (!finderWindow.isMinimized()) {
|
||||
finderWindow.minimize()
|
||||
if (finderWindow.isVisible()) {
|
||||
finderWindow.blur()
|
||||
finderWindow.hide()
|
||||
} else {
|
||||
nodeIpc.of.node.emit('request-data')
|
||||
finderWindow.restore()
|
||||
finderWindow.show()
|
||||
finderWindow.focus()
|
||||
}
|
||||
// if (!finderWindow.isMinimized()) {
|
||||
// finderWindow.minimize()
|
||||
// } else {
|
||||
// nodeIpc.of.node.emit('request-data')
|
||||
// finderWindow.restore()
|
||||
// finderWindow.focus()
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user