mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fixed wrong message in title bar for cons window
This commit is contained in:
parent
a7df149ee9
commit
2137ffa25a
@ -12,14 +12,13 @@ void create_title_bar(void)
|
|||||||
|
|
||||||
title_bar = newwin(1, cols, 0, 0);
|
title_bar = newwin(1, cols, 0, 0);
|
||||||
wbkgd(title_bar, COLOR_PAIR(3));
|
wbkgd(title_bar, COLOR_PAIR(3));
|
||||||
mvwprintw(title_bar, 0, 0, title);
|
title_bar_show(title);
|
||||||
wrefresh(title_bar);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void title_bar_show(char *title)
|
void title_bar_show(char *title)
|
||||||
{
|
{
|
||||||
wclear(title_bar);
|
wclear(title_bar);
|
||||||
mvwprintw(title_bar, 0, 0, title);
|
mvwprintw(title_bar, 0, 0, " %s", title);
|
||||||
wrefresh(title_bar);
|
wrefresh(title_bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,11 @@ void switch_to(int i)
|
|||||||
wrefresh(wins[i].win);
|
wrefresh(wins[i].win);
|
||||||
curr_win = i;
|
curr_win = i;
|
||||||
|
|
||||||
title_bar_show(wins[i].from);
|
if (i == 0) {
|
||||||
|
title_bar_show("Console, type /help for help information");
|
||||||
|
} else {
|
||||||
|
title_bar_show(wins[i].from);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void close_win(void)
|
void close_win(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user