fix(t110): 移除自訂「結束 Arcrun RAG」——fyne systray 自動附 Quit 造成重複
leo 實測:選單同時有兩個結束項。fyne v2.5.3 內建 Quit 無公開 API 可改文案/抑制, 選移除自訂項(sup.Stop() 經 SetOnStopped 保障不變,Windows 同理)。tray go test 綠。 (實作=子 CC;驗證+commit=總管)
This commit is contained in:
@@ -915,10 +915,10 @@ func main() {
|
||||
fyne.NewMenuItem("+ 新增帳號…", func() { showConnectWizard() }),
|
||||
fyne.NewMenuItemSeparator(),
|
||||
versionItem,
|
||||
fyne.NewMenuItem("結束 Arcrun RAG", func() {
|
||||
sup.Stop()
|
||||
a.Quit()
|
||||
}),
|
||||
// t110:fyne v2.5.3 在 macOS/Windows 的 SetSystemTrayMenu 實作中會自動於底部附加 "Quit"
|
||||
// 項(英文,fyne glfw driver 內部行為,無公開 API 可改);重複加自訂結束項會出現兩個。
|
||||
// 移除自訂項,改由 fyne 內建 Quit 觸發:a.Lifecycle().SetOnStopped 已設定 sup.Stop(),
|
||||
// 行為等同。Windows 同樣有內建 Quit,不需要例外處理。
|
||||
)
|
||||
desk.SetSystemTrayMenu(fyne.NewMenu("Arcrun RAG", items...))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user