mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: make tray not block main process (#18880)
* fix: make tray not block main process * make AtomMenuModel refcounted
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user