mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-29 23:17:32 +02:00
Remove return value of Gui.setColorScheme
It always returns nil.
This commit is contained in:
parent
cd0f72d66a
commit
e71fc43952
@ -671,9 +671,7 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
|
|||||||
gui.g.Mouse = true
|
gui.g.Mouse = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := gui.setColorScheme(); err != nil {
|
gui.setColorScheme()
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
gui.g.SetManager(gocui.ManagerFunc(gui.layout))
|
gui.g.SetManager(gocui.ManagerFunc(gui.layout))
|
||||||
|
|
||||||
@ -931,7 +929,7 @@ func (gui *Gui) showBreakingChangesMessage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// setColorScheme sets the color scheme for the app based on the user config
|
// setColorScheme sets the color scheme for the app based on the user config
|
||||||
func (gui *Gui) setColorScheme() error {
|
func (gui *Gui) setColorScheme() {
|
||||||
userConfig := gui.UserConfig
|
userConfig := gui.UserConfig
|
||||||
theme.UpdateTheme(userConfig.Gui.Theme)
|
theme.UpdateTheme(userConfig.Gui.Theme)
|
||||||
|
|
||||||
@ -939,8 +937,6 @@ func (gui *Gui) setColorScheme() error {
|
|||||||
gui.g.SelFgColor = theme.ActiveBorderColor
|
gui.g.SelFgColor = theme.ActiveBorderColor
|
||||||
gui.g.FrameColor = theme.InactiveBorderColor
|
gui.g.FrameColor = theme.InactiveBorderColor
|
||||||
gui.g.SelFrameColor = theme.ActiveBorderColor
|
gui.g.SelFrameColor = theme.ActiveBorderColor
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) onUIThread(f func() error) {
|
func (gui *Gui) onUIThread(f func() error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user