fix: make tray not block main process (#18880)
* fix: make tray not block main process * make AtomMenuModel refcounted
This commit is contained in:
parent
24ffc3cfb0
commit
dc2cd8e780
4 changed files with 25 additions and 4 deletions
|
@ -63,7 +63,7 @@ class Menu : public mate::TrackableObject<Menu>,
|
|||
const base::Closure& callback) = 0;
|
||||
virtual void ClosePopupAt(int32_t window_id) = 0;
|
||||
|
||||
std::unique_ptr<AtomMenuModel> model_;
|
||||
scoped_refptr<AtomMenuModel> model_;
|
||||
Menu* parent_ = nullptr;
|
||||
|
||||
// Observable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue