mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-22 14:28:12 -05:00
parent
2bdd2d5982
commit
8815089c01
@ -169,7 +169,10 @@ class LifeCycle {
|
|||||||
db.set(configPaths.settings.isListeningClipboard, false)
|
db.set(configPaths.settings.isListeningClipboard, false)
|
||||||
}
|
}
|
||||||
const isHideDock = db.get(configPaths.settings.isHideDock) || false
|
const isHideDock = db.get(configPaths.settings.isHideDock) || false
|
||||||
const startMode = db.get(configPaths.settings.startMode) || ISartMode.QUIET
|
let startMode = db.get(configPaths.settings.startMode) || ISartMode.QUIET
|
||||||
|
if (process.platform === 'darwin' && startMode === ISartMode.MINI) {
|
||||||
|
startMode = ISartMode.QUIET
|
||||||
|
}
|
||||||
const currentPicBed = db.get(configPaths.picBed.uploader) || db.get(configPaths.picBed.current) || 'smms'
|
const currentPicBed = db.get(configPaths.picBed.uploader) || db.get(configPaths.picBed.current) || 'smms'
|
||||||
const currentPicBedConfig = db.get(`picBed.${currentPicBed}`)?._configName || 'Default'
|
const currentPicBedConfig = db.get(`picBed.${currentPicBed}`)?._configName || 'Default'
|
||||||
const tooltip = `${currentPicBed} ${currentPicBedConfig}`
|
const tooltip = `${currentPicBed} ${currentPicBedConfig}`
|
||||||
@ -201,7 +204,7 @@ class LifeCycle {
|
|||||||
}
|
}
|
||||||
await remoteNoticeHandler.init()
|
await remoteNoticeHandler.init()
|
||||||
remoteNoticeHandler.triggerHook(IRemoteNoticeTriggerHook.APP_START)
|
remoteNoticeHandler.triggerHook(IRemoteNoticeTriggerHook.APP_START)
|
||||||
if (startMode === ISartMode.MINI) {
|
if (startMode === ISartMode.MINI && process.platform !== 'darwin') {
|
||||||
windowManager.create(IWindowList.MINI_WINDOW)
|
windowManager.create(IWindowList.MINI_WINDOW)
|
||||||
const miniWindow = windowManager.get(IWindowList.MINI_WINDOW)!
|
const miniWindow = windowManager.get(IWindowList.MINI_WINDOW)!
|
||||||
miniWindow.removeAllListeners()
|
miniWindow.removeAllListeners()
|
||||||
|
@ -1258,6 +1258,10 @@ async function initData() {
|
|||||||
formOfSetting.value.autoImportPicBed = initArray(settings.autoImportPicBed || [], [])
|
formOfSetting.value.autoImportPicBed = initArray(settings.autoImportPicBed || [], [])
|
||||||
currentLanguage.value = valueToOptionItem(settings.language || 'zh-CN', languageList)
|
currentLanguage.value = valueToOptionItem(settings.language || 'zh-CN', languageList)
|
||||||
currentStartMode.value = valueToOptionItem(settings.startMode || ISartMode.QUIET, startModeList)
|
currentStartMode.value = valueToOptionItem(settings.startMode || ISartMode.QUIET, startModeList)
|
||||||
|
if (osGlobal.value === 'darwin' && currentStartMode.value.value === ISartMode.MINI) {
|
||||||
|
currentStartMode.value = valueToOptionItem(ISartMode.QUIET, startModeList)
|
||||||
|
saveConfig(configPaths.settings.startMode, ISartMode.QUIET)
|
||||||
|
}
|
||||||
currentManualPageOpen.value = valueToOptionItem(settings.manualPageOpen || 'window', manualPageOpenList)
|
currentManualPageOpen.value = valueToOptionItem(settings.manualPageOpen || 'window', manualPageOpenList)
|
||||||
currentShortUrlServer.value = valueToOptionItem(settings.shortUrlServer || 'c1n', shortUrlServerList)
|
currentShortUrlServer.value = valueToOptionItem(settings.shortUrlServer || 'c1n', shortUrlServerList)
|
||||||
customLink.value = settings.customLink || '![$fileName]($url)'
|
customLink.value = settings.customLink || '![$fileName]($url)'
|
||||||
|
Loading…
Reference in New Issue
Block a user