[feat] support minimizing to the system tray on macOS when closing, refs #87

This commit is contained in:
dijunkun
2026-06-23 00:39:44 +08:00
parent 009699b375
commit e026491b9f
8 changed files with 334 additions and 19 deletions
+2 -1
View File
@@ -218,7 +218,8 @@ function setup_targets()
add_includedirs("src/gui/tray", "src/service/windows",
{public = true})
elseif is_os("macosx") then
add_files("src/gui/windows/*.mm")
add_files("src/gui/windows/*.mm", "src/gui/tray/*.mm")
add_includedirs("src/gui/tray", {public = true})
end
if is_os("windows") then