Separate the concepts of archived and disconnected devices
Summary: Minor code cleanup to avoid future confusion: - archived: a device that was imported from a Flipper trace, and only has persisted state - (dis)connected: a real stateful device that might or might not have an active connection Reviewed By: nikoant Differential Revision: D26275459 fbshipit-source-id: eba554b37c39711e367c3795ff4456329a303c22
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1bb1cae167
commit
43c68c0e7c
@@ -431,14 +431,14 @@ export async function processStore(
|
||||
statusUpdate = () => {};
|
||||
}
|
||||
statusUpdate('Capturing screenshot...');
|
||||
const deviceScreenshot = device.isArchived
|
||||
? null
|
||||
: await capture(device).catch((e) => {
|
||||
const deviceScreenshot = device.connected.get()
|
||||
? await capture(device).catch((e) => {
|
||||
console.warn(
|
||||
'Failed to capture device screenshot when exporting. ' + e,
|
||||
);
|
||||
return null;
|
||||
});
|
||||
})
|
||||
: null;
|
||||
const processedClients = processClients(clients, serial, statusUpdate);
|
||||
const processedPluginStates = processPluginStates({
|
||||
clients: processedClients,
|
||||
|
||||
Reference in New Issue
Block a user