Added check for latest release

This commit is contained in:
James Booth
2012-10-23 23:30:01 +01:00
parent abec6ae07c
commit f8a4d21ab3
2 changed files with 9 additions and 1 deletions

View File

@@ -42,6 +42,7 @@
#include "contact_list.h"
#include "log.h"
#include "preferences.h"
#include "release.h"
#include "ui.h"
#define CONS_WIN_TITLE "_cons"
@@ -838,6 +839,13 @@ cons_about(void)
wprintw(_cons_win, "Type '/help' to show complete help.\n");
_win_show_time(_cons_win);
wprintw(_cons_win, "\n");
char *latest_release = release_get_latest();
_win_show_time(_cons_win);
wprintw(_cons_win, "RELEASE: %s", latest_release);
free(latest_release);
_win_show_time(_cons_win);
wprintw(_cons_win, "\n");
prefresh(_cons_win, 0, 0, 1, 0, rows-3, cols-1);