屏蔽同步功能

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 { 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 { sync } from '@renderer/store'
import { appSetting } from '@renderer/store/setting' import { appSetting } from '@renderer/store/setting'
@ -34,14 +34,14 @@ export default () => {
return async() => { return async() => {
sync.enable = appSetting['sync.enable'] sync.enable = appSetting['sync.enable']
sync.port = appSetting['sync.port'] sync.port = appSetting['sync.port']
if (appSetting['sync.enable'] && appSetting['sync.port']) { // if (appSetting['sync.enable'] && appSetting['sync.port']) {
void sendSyncAction({ // void sendSyncAction({
action: 'enable', // action: 'enable',
data: { // data: {
enable: appSetting['sync.enable'], // enable: appSetting['sync.enable'],
port: appSetting['sync.port'], // port: appSetting['sync.port'],
}, // },
}) // })
} // }
} }
} }

View File

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