private static void UpdaterStateChanged(object sender, EventArgs e)
{
m_download_item.Visible = false;
if (Updater.HasNewerVersion())
{
var text = string.Format(i18n.Text.Download,
Updater.Get("Latest") ?? "");
var url = Settings.IsInstalled() ? Updater.Get("Installer")
: Updater.Get("Portable");
if (url != null)
{
m_download_item.Visible = true;
m_download_item.Text = text;
m_download_url = url;
}
}
}