fix: prevent disabling GPU on the latest Linux kernels (#257)

Add win32 platform check to prevent disabling GPU on Linux kernels that starts with 6.1 (e. g. 6.1, 6.19 etc.)
This commit is contained in:
Abubakr Fazilov authored and GitHub committed 2026-05-17 13:52:50 +08:00
1 parent 190492b3f2
commit 0ca931d0d6
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ process.env.VITE_PUBLIC = VITE_DEV_SERVER_URL
: RENDERER_DIST : RENDERER_DIST
// Disable GPU Acceleration for Windows 7 // Disable GPU Acceleration for Windows 7
if (os.release().startsWith('6.1')) app.disableHardwareAcceleration() if (process.platform === 'win32' && os.release().startsWith('6.1')) app.disableHardwareAcceleration()
// Set application name for Windows 10+ notifications // Set application name for Windows 10+ notifications
if (process.platform === 'win32') app.setAppUserModelId(app.getName()) if (process.platform === 'win32') app.setAppUserModelId(app.getName())