From dd9ba86cb1949d123527d34f265d39deb431bea9 Mon Sep 17 00:00:00 2001 From: Orkun Tokdemir Date: Thu, 8 Aug 2024 16:44:31 +0200 Subject: [PATCH] qt-ui: Use better function names * Use `getQtCustomDesignerPath()` instead of `getDesignerPath()` which is better naming Change-Id: I2361f22213af7cdc0536b02d4079457b71683dee Reviewed-by: Marcus Tillmanns --- qt-ui/src/project.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/qt-ui/src/project.ts b/qt-ui/src/project.ts index 08c59f2..71a62c5 100644 --- a/qt-ui/src/project.ts +++ b/qt-ui/src/project.ts @@ -31,11 +31,7 @@ export class UIProject implements ProjectBase { readonly _context: vscode.ExtensionContext ) { this._designerServer = new DesignerServer(); - this._customWidgetsDesignerExePath = getConfig( - CONF_CUSTOM_WIDGETS_DESIGNER_EXE_PATH, - '', - this._folder - ); + this._customWidgetsDesignerExePath = this.getQtCustomDesignerPath(); logger.info( `${CONF_CUSTOM_WIDGETS_DESIGNER_EXE_PATH}: "${this._customWidgetsDesignerExePath}"` ); @@ -57,11 +53,7 @@ export class UIProject implements ProjectBase { this._folder ) ) { - this._customWidgetsDesignerExePath = getConfig( - CONF_CUSTOM_WIDGETS_DESIGNER_EXE_PATH, - '', - this._folder - ); + this._customWidgetsDesignerExePath = this.getQtCustomDesignerPath(); logger.info( `new ${CONF_CUSTOM_WIDGETS_DESIGNER_EXE_PATH}:`, this._customWidgetsDesignerExePath @@ -83,7 +75,7 @@ export class UIProject implements ProjectBase { if (this._designerClient) { this._designerClient.detach(); this._designerClient = new DesignerClient( - this.getQtDesignerPath(), + this.getQtCustomDesignerPath(), this._designerServer.getPort() ); } @@ -91,7 +83,7 @@ export class UIProject implements ProjectBase { } }); } - getQtDesignerPath() { + getQtCustomDesignerPath() { return getConfig( CONF_CUSTOM_WIDGETS_DESIGNER_EXE_PATH, '',