Skip to content

Commit

Permalink
always enable view logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Feb 15, 2024
1 parent e547378 commit 4240b04
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/tray/wintray/menus.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ const (
)

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

if err := t.addOrUpdateMenuItem(diagLogsMenuID, 0, diagLogsMenuTitle, false); err != nil {
return fmt.Errorf("unable to create menu entries %w\n", err)
}
if err := t.addSeparatorMenuItem(diagSeparatorMenuID, 0); err != nil {
return fmt.Errorf("unable to create menu entries %w", err)
}
if err := t.addOrUpdateMenuItem(quitMenuID, 0, quitMenuTitle, false); err != nil {
return fmt.Errorf("unable to create menu entries %w\n", err)
Expand Down

0 comments on commit 4240b04

Please sign in to comment.