Show version number in property inspector
This commit is contained in:
@@ -6433,7 +6433,7 @@ async function stopTimer(token, entryId) {
|
||||
}
|
||||
|
||||
// src/plugin.ts
|
||||
var CURRENT_VERSION = "1.0.1";
|
||||
var CURRENT_VERSION = "1.0.2";
|
||||
var GITEA_BASE = "http://100.120.125.113:3000/pdm/stream_deck_notion_timer/raw/branch/master";
|
||||
async function checkForUpdates() {
|
||||
try {
|
||||
@@ -6481,14 +6481,14 @@ var TimerToggle = class extends SingletonAction {
|
||||
try {
|
||||
const global = await getGlobal();
|
||||
if (!isConfigured(global)) {
|
||||
await plugin_default.ui.sendToPropertyInspector({ event: "projects", data: [], error: "Configure Notion credentials in plugin settings first." });
|
||||
await plugin_default.ui.sendToPropertyInspector({ event: "projects", data: [], error: "Configure Notion credentials in plugin settings first.", version: CURRENT_VERSION });
|
||||
return;
|
||||
}
|
||||
const projects = await fetchProjects(global.notionToken, global.projectsDbId);
|
||||
await plugin_default.ui.sendToPropertyInspector({ event: "projects", data: projects });
|
||||
await plugin_default.ui.sendToPropertyInspector({ event: "projects", data: projects, version: CURRENT_VERSION });
|
||||
} catch (err) {
|
||||
plugin_default.logger.error("Failed to fetch projects:", err);
|
||||
await plugin_default.ui.sendToPropertyInspector({ event: "projects", data: [], error: String(err) });
|
||||
await plugin_default.ui.sendToPropertyInspector({ event: "projects", data: [], error: String(err), version: CURRENT_VERSION });
|
||||
}
|
||||
}
|
||||
async onKeyDown(ev) {
|
||||
|
||||
Reference in New Issue
Block a user