mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
Fetch and display : voidVersion into dialog handler
This commit is contained in:
parent
ba606d229a
commit
014c87bc3e
1 changed files with 3 additions and 1 deletions
|
|
@ -71,6 +71,7 @@ export class NativeDialogHandler extends AbstractDialogHandler {
|
||||||
|
|
||||||
async about(): Promise<void> {
|
async about(): Promise<void> {
|
||||||
let version = this.productService.version;
|
let version = this.productService.version;
|
||||||
|
let voidVersion = this.productService.voidVersion || 'Unknown';
|
||||||
if (this.productService.target) {
|
if (this.productService.target) {
|
||||||
version = `${version} (${this.productService.target} setup)`;
|
version = `${version} (${this.productService.target} setup)`;
|
||||||
} else if (this.productService.darwinUniversalAssetId) {
|
} else if (this.productService.darwinUniversalAssetId) {
|
||||||
|
|
@ -81,7 +82,8 @@ export class NativeDialogHandler extends AbstractDialogHandler {
|
||||||
|
|
||||||
const detailString = (useAgo: boolean): string => {
|
const detailString = (useAgo: boolean): string => {
|
||||||
return localize({ key: 'aboutDetail', comment: ['Electron, Chromium, Node.js and V8 are product names that need no translation'] },
|
return localize({ key: 'aboutDetail', comment: ['Electron, Chromium, Node.js and V8 are product names that need no translation'] },
|
||||||
"Version: {0}\nCommit: {1}\nDate: {2}\nElectron: {3}\nElectronBuildId: {4}\nChromium: {5}\nNode.js: {6}\nV8: {7}\nOS: {8}",
|
"Void : {0}\nVSCode Version: {1}\nCommit: {2}\nDate: {3}\nElectron: {4}\nElectronBuildId: {5}\nChromium: {6}\nNode.js: {7}\nV8: {8}\nOS: {9}",
|
||||||
|
voidVersion,
|
||||||
version,
|
version,
|
||||||
this.productService.commit || 'Unknown',
|
this.productService.commit || 'Unknown',
|
||||||
this.productService.date ? `${this.productService.date}${useAgo ? ' (' + fromNow(new Date(this.productService.date), true) + ')' : ''}` : 'Unknown',
|
this.productService.date ? `${this.productService.date}${useAgo ? ' (' + fromNow(new Date(this.productService.date), true) + ')' : ''}` : 'Unknown',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue