Fix device plugins targeting host device not showing up
Summary: Fixes https://github.com/facebook/flipper/issues/1945 Changelog: Fixed an issue where device plugins targeting the host device didn't show up without connected clients. Reviewed By: fabiomassimo Differential Revision: D26690516 fbshipit-source-id: b46fd9bf06189354ed772581dc8db6b17104bea9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4da2b52803
commit
86e700f918
@@ -43,6 +43,7 @@ export type DeviceExport = {
|
||||
|
||||
export default class BaseDevice {
|
||||
isArchived = false;
|
||||
hasDevicePlugins = false; // true if there are device plugins for this device (not necessarily enabled)
|
||||
|
||||
constructor(
|
||||
serial: string,
|
||||
@@ -231,6 +232,7 @@ export default class BaseDevice {
|
||||
if (!this.supportsPlugin(plugin)) {
|
||||
return;
|
||||
}
|
||||
this.hasDevicePlugins = true;
|
||||
this.devicePlugins.push(plugin.id);
|
||||
if (plugin instanceof _SandyPluginDefinition) {
|
||||
this.sandyPluginStates.set(
|
||||
|
||||
Reference in New Issue
Block a user