electron/shell/browser/ui/tray_icon_win.cc
bitdisaster 89eb309d0b
feat: allow GUID parameter to avoid systray demotion on Windows (#21891)
* fix: systray icon demotion

Adding support for GUID parameter in Tray API.
In combination with signed binaries this allows to maintain
the position in the systray on Windows.

* unit tests

* make mac and linux compile
2020-01-31 14:37:03 +09:00

16 lines
418 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(base::Optional<UUID> guid) {
static NotifyIconHost host;
return host.CreateNotifyIcon(guid);
}
} // namespace electron