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

fix: return early from beep on linux if there is no default gdk display
This commit is contained in:
Noah Gregory
2026-01-21 15:55:24 -05:00
committed by GitHub
parent 51e7753ae9
commit 534cb33465

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);
}