mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +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) => {
|
export default (props) => {
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
app.eventBus.emit("app.close")
|
app.electron.closeApp()
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleMinimize = () => {
|
const handleMinimize = () => {
|
||||||
app.eventBus.emit("app.minimize")
|
app.electron.minimizeApp()
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div className="app_systemBar">
|
return <div className="app_systemBar">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user