Skip to content

Commit

Permalink
Add settings to the dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 4, 2025
1 parent 2d5d867 commit f5289b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Create(a fyne.App, w fyne.Window) fyne.CanvasObject {
dropdown := &widget.Button{Icon: theme.MenuIcon(), Importance: widget.LowImportance}
dropdown.OnTapped = func() {
widget.ShowPopUpMenuAtRelativePosition(
&fyne.Menu{Items: []*fyne.MenuItem{{Label: "About", Icon: theme.InfoIcon(), Action: func() {
&fyne.Menu{Items: []*fyne.MenuItem{{Label: "Settings", Icon: theme.SettingsIcon()}, {Label: "About", Icon: theme.InfoIcon(), Action: func() {
links := []*widget.Hyperlink{
{Text: "Repository", URL: util.URLToGitHubProject("")},
{Text: "Issue Tracker", URL: util.URLToGitHubProject("/issues")},
Expand All @@ -24,7 +24,7 @@ func Create(a fyne.App, w fyne.Window) fyne.CanvasObject {
abwin := dialog.NewAboutWindow("Easy encrypted file, folder, and text sharing between devices.", links, a)
abwin.Resize(fyne.NewSize(500, 300))
abwin.Show()
}}}}, w.Canvas(), fyne.Position{Y: dropdown.Size().Height}, dropdown)
}}}}, w.Canvas(), fyne.Position{Y: dropdown.Size().Height + theme.Padding()}, dropdown)
}

tabs := &container.AppTabs{
Expand Down

0 comments on commit f5289b3

Please sign in to comment.