focusPoppedOutDesktopTab method

Future<void> focusPoppedOutDesktopTab(
  1. InfospectDesktopTab tab
)

Focuses an already-open popped-out tab window, if any.

Implementation

Future<void> focusPoppedOutDesktopTab(InfospectDesktopTab tab) async {
  final existingId = _windowIdFor(tab);
  if (existingId == null) return;
  if (!MultiViewDesktop.allWindowViewIds.contains(existingId)) return;
  await _focusWindow(existingId);
}