mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
Destroy the native tray in next tick
This commit is contained in:
@@ -29,6 +29,8 @@ Tray::Tray(v8::Isolate* isolate, mate::Handle<NativeImage> image)
|
||||
}
|
||||
|
||||
Tray::~Tray() {
|
||||
// Destroy the native tray in next tick.
|
||||
base::MessageLoop::current()->DeleteSoon(FROM_HERE, tray_icon_.release());
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user