mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
deprecate boolean highlightMode param (#11993)
* deprecate boolean highlightMode param * add process.noDeprecations check * fix native method override * add todo
This commit is contained in:
committed by
Charles Kerr
parent
719e5a93b4
commit
193febd18c
@@ -39,6 +39,16 @@ struct Converter<atom::TrayIcon::HighlightMode> {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
bool highlight;
|
||||
if (ConvertFromV8(isolate, val, &highlight)) {
|
||||
if (highlight)
|
||||
*out = atom::TrayIcon::HighlightMode::SELECTION;
|
||||
else
|
||||
*out = atom::TrayIcon::HighlightMode::NEVER;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user