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

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-22 15:00:38 -05:00
committed by GitHub
parent b244963d63
commit 173d0d16dc

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