mirror of https://github.com/Fabio286/antares.git
fix: hide update tab for Windows Store distributions
This commit is contained in:
parent
99f7511c4d
commit
dcb135dd01
Binary file not shown.
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
@ -9,10 +9,13 @@ autoUpdater.allowPrerelease = persistentStore.get('allow_prerelease', true);
|
||||||
export default () => {
|
export default () => {
|
||||||
ipcMain.on('check-for-updates', event => {
|
ipcMain.on('check-for-updates', event => {
|
||||||
mainWindow = event;
|
mainWindow = event;
|
||||||
|
if (process.windowsStore)
|
||||||
|
mainWindow.reply('no-auto-update');
|
||||||
|
else {
|
||||||
autoUpdater.checkForUpdatesAndNotify().catch(() => {
|
autoUpdater.checkForUpdatesAndNotify().catch(() => {
|
||||||
mainWindow.reply('check-failed');
|
mainWindow.reply('check-failed');
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('restart-to-update', () => {
|
ipcMain.on('restart-to-update', () => {
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<a class="c-hand">{{ $t('word.themes') }}</a>
|
<a class="c-hand">{{ $t('word.themes') }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li
|
<li
|
||||||
|
v-if="updateStatus !== 'disabled'"
|
||||||
class="tab-item"
|
class="tab-item"
|
||||||
:class="{'active': selectedTab === 'update'}"
|
:class="{'active': selectedTab === 'update'}"
|
||||||
@click="selectTab('update')"
|
@click="selectTab('update')"
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default {
|
||||||
is_setting_modal: false,
|
is_setting_modal: false,
|
||||||
selected_setting_tab: 'general',
|
selected_setting_tab: 'general',
|
||||||
selected_conection: {},
|
selected_conection: {},
|
||||||
update_status: 'noupdate', // noupdate, available, checking, nocheck, downloading, downloaded
|
update_status: 'noupdate', // noupdate, available, checking, nocheck, downloading, downloaded, disabled
|
||||||
download_progress: 0,
|
download_progress: 0,
|
||||||
base_completer: [] // Needed to reset ace editor, due global-only ace completer
|
base_completer: [] // Needed to reset ace editor, due global-only ace completer
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,6 +13,9 @@ export default store => {
|
||||||
ipcRenderer.on('check-failed', () => {
|
ipcRenderer.on('check-failed', () => {
|
||||||
store.commit('application/CHANGE_UPDATE_STATUS', 'nocheck');
|
store.commit('application/CHANGE_UPDATE_STATUS', 'nocheck');
|
||||||
});
|
});
|
||||||
|
ipcRenderer.on('no-auto-update', () => {
|
||||||
|
store.commit('application/CHANGE_UPDATE_STATUS', 'disabled');
|
||||||
|
});
|
||||||
ipcRenderer.on('download-progress', (event, data) => {
|
ipcRenderer.on('download-progress', (event, data) => {
|
||||||
store.commit('application/CHANGE_UPDATE_STATUS', 'downloading');
|
store.commit('application/CHANGE_UPDATE_STATUS', 'downloading');
|
||||||
store.commit('application/CHANGE_PROGRESS_PERCENTAGE', data.percent);
|
store.commit('application/CHANGE_PROGRESS_PERCENTAGE', data.percent);
|
||||||
|
|
Loading…
Reference in New Issue