remove appcommand media-play_pause option deprecation
This commit is contained in:
Родитель
003a5a0160
Коммит
3deffa859d
|
@ -143,10 +143,6 @@ bool NativeWindowViews::ExecuteWindowsCommand(int command_id) {
|
||||||
std::string command = AppCommandToString(command_id);
|
std::string command = AppCommandToString(command_id);
|
||||||
NotifyWindowExecuteWindowsCommand(command);
|
NotifyWindowExecuteWindowsCommand(command);
|
||||||
|
|
||||||
if (command_id == APPCOMMAND_MEDIA_PLAY_PAUSE)
|
|
||||||
// FIXME(htk3): Remove media-play_pause in 3.0
|
|
||||||
NotifyWindowExecuteWindowsCommand("media-play_pause");
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,19 +14,6 @@ let windowA = new BrowserWindow(optionsA)
|
||||||
// Replace with
|
// Replace with
|
||||||
let optionsB = {webPreferences: {enableBlinkFeatures: ''}}
|
let optionsB = {webPreferences: {enableBlinkFeatures: ''}}
|
||||||
let windowB = new BrowserWindow(optionsB)
|
let windowB = new BrowserWindow(optionsB)
|
||||||
|
|
||||||
// Deprecated
|
|
||||||
window.on('app-command', (e, cmd) => {
|
|
||||||
if (cmd === 'media-play_pause') {
|
|
||||||
// do something
|
|
||||||
}
|
|
||||||
})
|
|
||||||
// Replace with
|
|
||||||
window.on('app-command', (e, cmd) => {
|
|
||||||
if (cmd === 'media-play-pause') {
|
|
||||||
// do something
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## `nativeImage`
|
## `nativeImage`
|
||||||
|
|
Загрузка…
Ссылка в новой задаче