mirror of
https://github.com/Apologieze/Benri.git
synced 2026-03-18 21:50:37 +01:00
Default tray on close
This commit is contained in:
@@ -25,7 +25,7 @@ func CreateConfig(app fyne.Preferences) {
|
|||||||
preference: app,
|
preference: app,
|
||||||
SkipOpening: app.Bool(SkipOpeningKey),
|
SkipOpening: app.Bool(SkipOpeningKey),
|
||||||
SkipEnding: app.Bool(SkipEndingKey),
|
SkipEnding: app.Bool(SkipEndingKey),
|
||||||
TrayIcon: app.Bool(TrayIconKey),
|
TrayIcon: app.BoolWithFallback(TrayIconKey, true),
|
||||||
DiscordPresence: app.BoolWithFallback(DiscordPresence, true),
|
DiscordPresence: app.BoolWithFallback(DiscordPresence, true),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ func initSettingDialog() {
|
|||||||
widget.NewLabelWithStyle("Show Discord Activity", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}), checkDiscordPresence,
|
widget.NewLabelWithStyle("Show Discord Activity", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}), checkDiscordPresence,
|
||||||
)
|
)
|
||||||
//form := container.New(layout.NewFormLayout(), rowSkipOpening)
|
//form := container.New(layout.NewFormLayout(), rowSkipOpening)
|
||||||
logoutButton := widget.NewButtonWithIcon("Log out AniList", theme.AccountIcon(), func() {
|
logoutButton := widget.NewButtonWithIcon("Log out from AniList", theme.AccountIcon(), func() {
|
||||||
deleteTokenFile()
|
deleteTokenFile()
|
||||||
appW.Quit()
|
appW.Quit()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user