electron/shell/browser/ui/tray_icon_win.cc
Shelley Vohr a0d983e4b5
feat: allow macOS tray to maintain position (#47838)
* feat: allow macOS tray to maintain position

* refactor: just use guid

* test: fixup tests

* docs: clarify UUID format
2025-08-07 19:25:50 +02:00

16 lines
423 B
C++

// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/win/notify_icon.h"
#include "shell/browser/ui/win/notify_icon_host.h"
namespace electron {
// static
TrayIcon* TrayIcon::Create(std::optional<base::Uuid> guid) {
static NotifyIconHost host;
return host.CreateNotifyIcon(guid);
}
} // namespace electron