89eb309d0b
* 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
16 lines
418 B
C++
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
|