feat: check for available updates

This commit is contained in:
2026-06-16 19:52:23 +02:00
parent 69d0780bac
commit 957182611d
7 changed files with 169 additions and 102 deletions
+2
View File
@@ -37,6 +37,8 @@ export function BrowseExecutable():Promise<string>;
export function BulkUpdateQSL(arg1:Array<number>,arg2:main.QSLBulkUpdate):Promise<number>;
export function CheckForUpdate():Promise<main.UpdateInfo>;
export function ClearLookupCache():Promise<void>;
export function ClusterSpotStatuses(arg1:Array<main.SpotQuery>):Promise<Array<main.SpotStatus>>;
+4
View File
@@ -46,6 +46,10 @@ export function BulkUpdateQSL(arg1, arg2) {
return window['go']['main']['App']['BulkUpdateQSL'](arg1, arg2);
}
export function CheckForUpdate() {
return window['go']['main']['App']['CheckForUpdate']();
}
export function ClearLookupCache() {
return window['go']['main']['App']['ClearLookupCache']();
}
+18
View File
@@ -1591,6 +1591,24 @@ export namespace main {
this.moving = source["moving"];
}
}
export class UpdateInfo {
current: string;
latest: string;
available: boolean;
url: string;
static createFrom(source: any = {}) {
return new UpdateInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.current = source["current"];
this.latest = source["latest"];
this.available = source["available"];
this.url = source["url"];
}
}
export class WKMacro {
label: string;
text: string;