feat: add tray control, priority restoration and session logging
This commit is contained in:
1 parent
4f8f6218ad
commit
4880aa46dc
25 files changed
+3072
-676
No files matched your search
@@ -0,0 +1,26 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
import _ "embed"
|
||||
|
||||
//go:embed assets/chart_bar_edit.png
|
||||
var trayPNG []byte
|
||||
|
||||
//go:embed assets/cross.png
|
||||
var exitPNG []byte
|
||||
|
||||
func trayActivation(version4 bool, event uint32) bool {
|
||||
if version4 {
|
||||
switch event {
|
||||
case 0x400, 0x401, 0x7b, 0x208, 0x20c:
|
||||
return true
|
||||
}
|
||||
} else {
|
||||
switch event {
|
||||
case 0x202, 0x205, 0x208, 0x20c, 0x400, 0x401, 0x7b:
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in new issue
Block a user