Merge pull request #11981 from electron/set-tray-highlightmode
no longer support bool param for setHighlightMode
This commit is contained in:
commit
dcaff20cfd
1 changed files with 0 additions and 12 deletions
|
@ -39,18 +39,6 @@ struct Converter<atom::TrayIcon::HighlightMode> {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Support old boolean parameter
|
|
||||||
// TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
|
|
||||||
bool highlight;
|
|
||||||
if (ConvertFromV8(isolate, val, &highlight)) {
|
|
||||||
if (highlight)
|
|
||||||
*out = atom::TrayIcon::HighlightMode::SELECTION;
|
|
||||||
else
|
|
||||||
*out = atom::TrayIcon::HighlightMode::NEVER;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue