diff --git a/Blueberry/App.xaml.cs b/Blueberry/App.xaml.cs index 2e83d4d..62539c3 100644 --- a/Blueberry/App.xaml.cs +++ b/Blueberry/App.xaml.cs @@ -53,9 +53,10 @@ namespace BlueMine /// private async void OnStartup(object sender, StartupEventArgs e) { +#if !DEBUG var update = new UpdateManager(); await update.CheckAndInstallAsync(); - +#endif await _host.StartAsync(); var mainWindow = _host.Services.GetRequiredService(); mainWindow.Show(); diff --git a/Blueberry/MainWindow.xaml b/Blueberry/MainWindow.xaml index 3f215bb..ca0edf9 100644 --- a/Blueberry/MainWindow.xaml +++ b/Blueberry/MainWindow.xaml @@ -256,5 +256,6 @@ + diff --git a/Blueberry/MainWindow.xaml.cs b/Blueberry/MainWindow.xaml.cs index 84b72d0..0d16b31 100644 --- a/Blueberry/MainWindow.xaml.cs +++ b/Blueberry/MainWindow.xaml.cs @@ -37,6 +37,7 @@ namespace BlueMine apiUrlTextBox.Text = _config.RedmineUrl; apiPasswordBox.PlaceholderText = new string('●', _config.ApiKey.Length); mainCalendar.SelectedDate = DateTime.Today; + versionTextBlock.Text = UpdateManager.CurrentVersion; if(await TestConnection()) { diff --git a/Blueberry/UpdateManager.cs b/Blueberry/UpdateManager.cs index 3e01c5a..b84f911 100644 --- a/Blueberry/UpdateManager.cs +++ b/Blueberry/UpdateManager.cs @@ -8,7 +8,7 @@ namespace Blueberry public class UpdateManager { private const string releaseUrl = "https://git.technopunk.space/api/v1/repos/tomi/Blueberry/releases/latest"; - private const string CurrentVersion = "0.1.0"; + public const string CurrentVersion = "0.1.1"; public async Task CheckAndInstallAsync() {