mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2025-09-09 03:00:39 -05:00
Updating localizations.
This commit is contained in:
parent
4a9571e153
commit
77d409b4c7
8 changed files with 127 additions and 0 deletions
|
|
@ -51,6 +51,19 @@ namespace butterflow_ui
|
|||
this.ButterflowWrapper.ParsedConsoleOutputRecieved += ButterflowWrapper_ParsedConsoleOutputRecieved;
|
||||
this.OptionsConfiguration.AddConstantCallProperty("CommandLineOutput");
|
||||
InitializeComponent();
|
||||
|
||||
// Check for updates.
|
||||
if (OctokitWrapper.CurrentVersionStatus == OctokitWrapper.VersionStatus.behind)
|
||||
{
|
||||
var updateMessageBoxResult = MessageBox.Show(string.Format("{0} {1}", Localization.Localization.BehindVersionStatusDescription, Localization.Localization.BehindVersionQuestion), Localization.Localization.UpdateAvailableLabel, MessageBoxButton.YesNo, MessageBoxImage.Information);
|
||||
|
||||
// If the user wants to update now, take them to the latest release on github and close this window.
|
||||
if(updateMessageBoxResult == MessageBoxResult.Yes)
|
||||
{
|
||||
Process.Start("https://github.com/wagesj45/butterflow-ui/releases/latest");
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region Methods
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue