We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the title of a menu to a longer character, then restore it. The width of the menu will not be restored.
minimal reproducible example:
package main import ( "fmt" "time" "fyne.io/systray" "fyne.io/systray/example/icon" ) func main() { onExit := func() { now := time.Now() fmt.Println("Exit at", now.String()) } systray.Run(onReady, onExit) } func addQuitItem() { mQuit := systray.AddMenuItem("Quit", "Quit the whole app") mQuit.Enable() go func() { <-mQuit.ClickedCh fmt.Println("Requesting quit") systray.Quit() fmt.Println("Finished quitting") }() systray.AddSeparator() } func onReady() { systray.SetTemplateIcon(icon.Data, icon.Data) systray.SetTitle("Awesome App") systray.SetTooltip("Lantern") addQuitItem() // We can manipulate the systray in other goroutines go func() { systray.SetTitle("Awesome App") systray.SetTooltip("Pretty awesome棒棒嗒") mChange := systray.AddMenuItem("Change Me", "Change Me") mRestore := systray.AddMenuItem("Restore Me", "Restore Me") systray.AddMenuItem("Ignored", "Ignored") for { select { case <-mChange.ClickedCh: mChange.SetTitle("I've Changed, hahahahahaha") case <-mRestore.ClickedCh: mChange.SetTitle("Change Me") } } }() }
The text was updated successfully, but these errors were encountered:
On what operating system (and potentially desktop environment if on Linux/BSD) are you experiencing this?
Sorry, something went wrong.
I can't seem to replicate on Gnome. The menu is just as wide with both the narrow and wide texts (before and after).
Windows 11
No branches or pull requests
Set the title of a menu to a longer character, then restore it. The width of the menu will not be restored.
minimal reproducible example:
The text was updated successfully, but these errors were encountered: