Skip to content

Commit

Permalink
Add option to toggle checking for pre-release updates or just full re…
Browse files Browse the repository at this point in the history
…lease versions. Closes #301
  • Loading branch information
Iridium-IO committed Jul 7, 2024
1 parent a75a28e commit d663504
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 195 deletions.
1 change: 1 addition & 0 deletions CompactGUI/Models/Settings.vb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Public Class Settings : Inherits ObservableObject
Public Property WindowHeight As Decimal = 800

Public Property AllowMultiInstance As Boolean = False
Public Property EnablePreReleaseUpdates As Boolean = True

'TODO: Add local saving of per-folder skip list
Public Sub Save()
Expand Down
3 changes: 2 additions & 1 deletion CompactGUI/ViewModels/MainViewModel.vb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Public Class MainViewModel : Inherits ObservableObject


Private Async Function CheckForUpdatesAsync() As Task
Dim ret = Await UpdateHandler.CheckForUpdate(True)

Dim ret = Await UpdateHandler.CheckForUpdate(SettingsHandler.AppSettings.EnablePreReleaseUpdates)
If ret Then UpdateAvailable = New Tuple(Of Boolean, String)(True, "update available - v" & UpdateHandler.NewVersion.Friendly)
End Function

Expand Down
Loading

0 comments on commit d663504

Please sign in to comment.