Some methods can be accessed after object is destroyed
This commit is contained in:
parent
ae52af3870
commit
85a4ff83da
5 changed files with 10 additions and 10 deletions
|
@ -110,7 +110,7 @@ void Tray::SetContextMenu(mate::Arguments* args, Menu* menu) {
|
|||
void Tray::BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> prototype) {
|
||||
mate::ObjectTemplateBuilder(isolate, prototype)
|
||||
.SetMethod("destroy", &Tray::Destroy)
|
||||
.SetMethod("destroy", &Tray::Destroy, true)
|
||||
.SetMethod("setImage", &Tray::SetImage)
|
||||
.SetMethod("setPressedImage", &Tray::SetPressedImage)
|
||||
.SetMethod("setToolTip", &Tray::SetToolTip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue