Skip to content

Commit

Permalink
Changes applied for dismissing specific update (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdkrmabd authored Oct 21, 2024
1 parent 32e2d81 commit ea2dc77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion renderer/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,9 @@ $(document).on('checkForUpdates', function(e, manualCheck = false) {
}
})

assetsContainer.toggle(assets.length != 0)


if (assets.length != 0)
assetsContainer.find('div.asset').remove()

Expand All @@ -1576,7 +1579,7 @@ $(document).on('checkForUpdates', function(e, manualCheck = false) {

$('button#dismissUpdate').unbind('click').click(function() {
try {
Store.set('dismissUpdate', `${result.releaseInfo.name}`)
Store.set('dismissUpdate', `${result.releaseInfo.tag_name}`)

showToast(I18next.capitalize(I18next.t('dismiss update')), I18next.capitalizeFirstLetter(I18next.replaceData('the update with the specific version [b]$data[/b] has been dismissed, however, you can still reach this update from the settings section', [result.releaseInfo.name])) + '.', 'success')

Expand Down

0 comments on commit ea2dc77

Please sign in to comment.