mirror of
https://github.com/OpenListTeam/OpenList-Desktop.git
synced 2025-11-25 19:27:33 +08:00
feat: add ci for lint and release , fix several bugs (#5)
* feat: add save_settings_with_update_port command and update related components * refactor: remove state parameter from API key retrieval and update related functions * feat: enhance release workflow with tag validation and improve build scripts * feat: update release workflow to use version input from auto-version workflow * 📦 Chore(custom): add Clippy configuration for consistent linting across platforms * chore: add Clippy configuration for consistent linting across platforms * 🐛 Fix(custom): fix ci * 🚧 WIP(custom): fix clippy error * 🐛 Fix(custom): add default openlist and rclone version * 🚧 WIP(custom): fix clippy errors * 🚧 WIP(custom): fix clippy errors * 🐛 Fix(custom): fix ci bugs
This commit is contained in:
@@ -19,10 +19,7 @@ const autoStartApp = ref(false)
|
||||
const openlistCoreSettings = reactive({ ...store.settings.openlist })
|
||||
const rcloneSettings = reactive({ ...store.settings.rclone })
|
||||
const appSettings = reactive({ ...store.settings.app })
|
||||
|
||||
const isOpenListPortChanged = computed(() => {
|
||||
return openlistCoreSettings.port !== store.settings.openlist.port
|
||||
})
|
||||
let originalOpenlistPort = openlistCoreSettings.port || 5244
|
||||
|
||||
watch(autoStartApp, async newValue => {
|
||||
if (newValue) {
|
||||
@@ -72,6 +69,7 @@ onMounted(async () => {
|
||||
|
||||
if (!appSettings.monitor_interval) appSettings.monitor_interval = 5
|
||||
if (appSettings.auto_update_enabled === undefined) appSettings.auto_update_enabled = true
|
||||
originalOpenlistPort = openlistCoreSettings.port || 5244
|
||||
})
|
||||
|
||||
const hasUnsavedChanges = computed(() => {
|
||||
@@ -108,8 +106,11 @@ const handleSave = async () => {
|
||||
store.settings.openlist = { ...openlistCoreSettings }
|
||||
store.settings.rclone = { ...rcloneSettings }
|
||||
store.settings.app = { ...appSettings }
|
||||
|
||||
await store.saveSettings()
|
||||
if (originalOpenlistPort !== openlistCoreSettings.port) {
|
||||
await store.saveSettingsWithUpdatePort()
|
||||
} else {
|
||||
await store.saveSettings()
|
||||
}
|
||||
message.value = t('settings.saved')
|
||||
messageType.value = 'success'
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user