mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-04 23:30:22 +08:00
✨ Feature(custom): optimize theme download logic
This commit is contained in:
@@ -2142,7 +2142,10 @@ async function loadThemes() {
|
||||
async function handleDownloadThemes() {
|
||||
try {
|
||||
downloadingThemes.value = true
|
||||
await window.electron.triggerRPC(IRPCActionType.THEME_FETCH_THEMES)
|
||||
const result = await window.electron.triggerRPC(IRPCActionType.THEME_FETCH_THEMES)
|
||||
if (!result) {
|
||||
throw new Error('No themes were downloaded.')
|
||||
}
|
||||
message.success(t('pages.settings.system.downloadThemesSuccess'))
|
||||
await loadThemes()
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user