fix: return early from platform_util::Beep() on Linux if there is no default GDK display (#49484)

fix: return early from beep on linux if there is no default gdk display

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
This commit is contained in:
trop[bot]
2026-01-23 11:07:47 +01:00
committed by GitHub
parent 6ce52ad792
commit 06fdee87b3

View File

@@ -406,6 +406,8 @@ bool PlatformTrashItem(const base::FilePath& full_path, std::string* error) {
void Beep() {
auto* display = gdk_display_get_default();
if (!display)
return;
gdk_display_beep(display);
}