always enable view logs

This commit is contained in:
Michael Yang 2024-02-15 12:08:27 -08:00
parent e547378893
commit 4240b045e6

View file

@ -21,14 +21,11 @@ const (
) )
func (t *winTray) initMenus() error { func (t *winTray) initMenus() error {
if debug := os.Getenv("OLLAMA_DEBUG"); debug != "" { if err := t.addOrUpdateMenuItem(diagLogsMenuID, 0, diagLogsMenuTitle, false); err != nil {
if err := t.addOrUpdateMenuItem(diagLogsMenuID, 0, diagLogsMenuTitle, false); err != nil { return fmt.Errorf("unable to create menu entries %w\n", err)
return fmt.Errorf("unable to create menu entries %w\n", err) }
} if err := t.addSeparatorMenuItem(diagSeparatorMenuID, 0); err != nil {
if err := t.addSeparatorMenuItem(diagSeparatorMenuID, 0); err != nil { return fmt.Errorf("unable to create menu entries %w", err)
return fmt.Errorf("unable to create menu entries %w", err)
}
} }
if err := t.addOrUpdateMenuItem(quitMenuID, 0, quitMenuTitle, false); err != nil { if err := t.addOrUpdateMenuItem(quitMenuID, 0, quitMenuTitle, false); err != nil {
return fmt.Errorf("unable to create menu entries %w\n", err) return fmt.Errorf("unable to create menu entries %w\n", err)