From ea12d25cef08e126835cc8a16951968ebe25f0e2 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 3 Mar 2025 11:40:01 +1300 Subject: [PATCH] Fix Linux .NET error dialog --- src-electron/main.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src-electron/main.js b/src-electron/main.js index dcd5daff..9baa4b0c 100644 --- a/src-electron/main.js +++ b/src-electron/main.js @@ -14,11 +14,13 @@ const fs = require('fs'); const https = require('https'); if (!isDotNetInstalled()) { - dialog.showErrorBox( - 'VRCX', - 'Please install .NET 9.0 Runtime "dotnet-runtime-9.0" to run VRCX.' - ); - app.quit(); + app.whenReady().then(() => { + dialog.showErrorBox( + 'VRCX', + 'Please install .NET 9.0 Runtime "dotnet-runtime-9.0" to run VRCX.' + ); + app.quit(); + }); return; }