fix: apparently the previous fix worked during testing but broke after the merge.
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/push/docs Pipeline was successful Details

Somehow.
This commit is contained in:
Johannes Frohnmeyer 2023-10-21 17:50:19 +02:00
parent 9fd5d870cf
commit 4aa1f24461
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ object GtkMenubar {
var launchMenu: MenuBuilder? = null
fun create(app: Application) {
val menu = MenuBuilder(app)
val menu = MenuBuilder(app, Menu()) // this should be MenuBuilder(app), but that breaks this
val file = menu.submenu("file")
newMenu = file.submenu("new")
generateNewMenu(app)
@ -64,7 +64,7 @@ object GtkMenubar {
file.button("exit") { app.quit() }
launchMenu = menu.submenu("launch")
generateLaunchMenu(app)
accountsMenu = MenuBuilder(app, Menu(), "account") // this should ideally be menu.submenu("account"), but that causes a segfault
accountsMenu = menu.submenu("account")
generateAccountsMenu(app)
val help = menu.submenu("help")
help.button("about") { AboutWindow.createAndShow() }