Skip to content

Commit

Permalink
Disable checking for updates in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdkrmabd committed Sep 22, 2024
1 parent 3184f0b commit da6b53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -1391,8 +1391,8 @@ $(document).on('initialize', () => setTimeout(() => {
$(document).on('checkForUpdates', function(e, manualCheck = false) {
IPCRenderer.invoke('check-app-format').then((info) => {
try {
// if (!info.devMode)
throw 0
if (!info.devMode)
throw 0

if (manualCheck)
showToast(I18next.capitalize(I18next.t('check for updates')), I18next.capitalizeFirstLetter(I18next.t(`in the development mode it's not allowed to check for updates. This feature is is only available in the production mode any its different formats`) + '.'), 'failure')
Expand Down

0 comments on commit da6b53f

Please sign in to comment.