From f5dbe3212b0ccf5418e19b66d62fc584d18fd887 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 11:18:27 +0100 Subject: [PATCH] docs: `app.getGPUInfo()` may reject (#49617) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: clavin --- docs/api/app.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/app.md b/docs/api/app.md index fa6c04f0e8..221cfd8a9e 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -1284,6 +1284,8 @@ For `infoType` equal to `basic`: Using `basic` should be preferred if only basic information like `vendorId` or `deviceId` is needed. +Promise is rejected if the GPU is completely disabled, i.e. no hardware and software implementations are available. + ### `app.setBadgeCount([count])` _Linux_ _macOS_ * `count` Integer (optional) - If a value is provided, set the badge to the provided value otherwise, on macOS, display a plain white dot (e.g. unknown number of notifications). On Linux, if a value is not provided the badge will not display.