屏蔽同步功能

pull/1094/head
lyswhut 2022-12-26 17:39:27 +08:00
parent 4594f2fd1f
commit a8228159b7
2 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
import { markRaw, onBeforeUnmount } from '@common/utils/vueTools'
import { onSyncAction, sendSyncAction } from '@renderer/utils/ipc'
import { onSyncAction } from '@renderer/utils/ipc'
import { sync } from '@renderer/store'
import { appSetting } from '@renderer/store/setting'
@ -34,14 +34,14 @@ export default () => {
return async() => {
sync.enable = appSetting['sync.enable']
sync.port = appSetting['sync.port']
if (appSetting['sync.enable'] && appSetting['sync.port']) {
void sendSyncAction({
action: 'enable',
data: {
enable: appSetting['sync.enable'],
port: appSetting['sync.port'],
},
})
}
// if (appSetting['sync.enable'] && appSetting['sync.port']) {
// void sendSyncAction({
// action: 'enable',
// data: {
// enable: appSetting['sync.enable'],
// port: appSetting['sync.port'],
// },
// })
// }
}
}

View File

@ -59,7 +59,7 @@ import SettingDesktopLyric from './components/SettingDesktopLyric'
import SettingSearch from './components/SettingSearch'
import SettingList from './components/SettingList'
import SettingDownload from './components/SettingDownload'
import SettingSync from './components/SettingSync'
// import SettingSync from './components/SettingSync'
import SettingHotKey from './components/SettingHotKey'
import SettingNetwork from './components/SettingNetwork'
import SettingOdc from './components/SettingOdc'
@ -78,7 +78,7 @@ export default {
SettingSearch,
SettingList,
SettingDownload,
SettingSync,
// SettingSync,
SettingHotKey,
SettingNetwork,
SettingOdc,
@ -102,7 +102,7 @@ export default {
{ id: 'SettingSearch', title: t('setting__search') },
{ id: 'SettingList', title: t('setting__list') },
{ id: 'SettingDownload', title: t('setting__download') },
{ id: 'SettingSync', title: t('setting__sync') },
// { id: 'SettingSync', title: t('setting__sync') },
{ id: 'SettingHotKey', title: t('setting__hot_key') },
{ id: 'SettingNetwork', title: t('setting__network') },
{ id: 'SettingOdc', title: t('setting__odc') },