[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧩 logseq.onSettingsChanged #24

Open
utterances-bot opened this issue Jul 13, 2024 · 1 comment
Open

🧩 logseq.onSettingsChanged #24

utterances-bot opened this issue Jul 13, 2024 · 1 comment

Comments

@utterances-bot
Copy link

https://plugins-doc.logseq.com/logseq/onSettingsChanged

Copy link
YU000jp commented Jul 13, 2024
import { LSPluginBaseInfo } from '@logseq/libs/dist/LSPlugin.user'

logseq.onSettingsChanged(async (newSet: LSPluginBaseInfo['settings'], oldSet: LSPluginBaseInfo['settings']) => {

    if (newSet.configStringA !== oldSet.configStringA){
 
    }
    if(newSet.configBooleanA === true && oldSet.configBooleanA === false){

   } else
       if (newSet.configBooleanA === false && oldSet.configBooleanA === true){

   }

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants