mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use electron to control
This commit is contained in:
parent
7612430d92
commit
6dc1223196
@ -5,11 +5,11 @@ import "./index.less"
|
||||
|
||||
export default (props) => {
|
||||
const handleClose = () => {
|
||||
app.eventBus.emit("app.close")
|
||||
app.electron.closeApp()
|
||||
}
|
||||
|
||||
const handleMinimize = () => {
|
||||
app.eventBus.emit("app.minimize")
|
||||
app.electron.minimizeApp()
|
||||
}
|
||||
|
||||
return <div className="app_systemBar">
|
||||
|
Loading…
x
Reference in New Issue
Block a user