mirror of
https://github.com/cdloh/obsidian-cron.git
synced 2026-07-22 07:40:30 +00:00
fix: Fix the lock feature for cronjob
This commit is contained in:
parent
517ac93d56
commit
70cb4a8686
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ export default class CronSettingTab extends PluginSettingTab {
|
|||
})
|
||||
})
|
||||
|
||||
const jobLocked = this.plugin.settings.locks[cronjob.name] && this.plugin.settings.locks[cronjob.name].locked
|
||||
const jobLocked = this.plugin.settings.locks[cronjob.id] && this.plugin.settings.locks[cronjob.id].locked
|
||||
jobSetting.addExtraButton((button) => {
|
||||
button.setIcon(jobLocked ? "lucide-lock" : "lucide-unlock")
|
||||
.setTooltip("Toggle job lock (clear lock if accidentally left locked)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue