We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7092b62 commit 03d70d4Copy full SHA for 03d70d4
src/main.tsx
@@ -97,6 +97,14 @@ const main: () => Promise<void> = async () => {
97
let settings = getTickTickSettings();
98
ticktick.setAccessToken(settings.accessToken);
99
100
+ logseq.onSettingsChanged(() => {
101
+ const newSettings = getTickTickSettings();
102
+ ticktick.setAccessToken(newSettings.accessToken);
103
+ logseq.UI.showMsg('TickTick access token is updated.', 'success', {
104
+ timeout: 3000,
105
+ });
106
107
+
108
if (settings.accessToken === '') {
109
await logseq.UI.showMsg('TickTick access token is not set.', 'warning', {
110
timeout: 3000,
0 commit comments