no longer support bool param for setHighlightMode
This commit is contained in:
parent
459a5e3a1f
commit
57738e6981
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…
Add table
Add a link
Reference in a new issue