🐛 Fix: fix some bugs

This commit is contained in:
萌萌哒赫萝 2023-04-09 23:45:29 +08:00
parent 8c7c3b28dd
commit 7e0991d36d
3 changed files with 5 additions and 1 deletions

View File

@ -158,6 +158,9 @@ class LifeCycle {
if (startMode !== 'no-tray' && process.platform === 'darwin') {
createTray()
}
if (process.platform === 'win32' || process.platform === 'linux') {
createTray()
}
db.set('needReload', false)
const isHideDock = db.get('settings.isHideDock') || false
if (isHideDock) {

View File

@ -1,6 +1,6 @@
import { IPasteStyle } from '#/types/enum'
import { handleUrlEncode } from '#/utils/common'
import db from 'apis/core/datastore'
import db from '~/main/apis/core/datastore'
const formatCustomLink = (customLink: string, item: ImgInfo) => {
const fileName = item.fileName!.replace(new RegExp(`\\${item.extname}$`), '')

View File

@ -695,4 +695,5 @@ onBeforeUnmount(async () => {
<style lang='stylus'>
#manage-setting
height 100%
overflow-y auto
</style>