This is a dangerous situation, and today we only console.log that.
We should have a voice alert that says something like "You're vehicle is armed and you explicitly minimized Cockpit. Your vehicle is not receiving joystick inputs anymore and can be in danger. Take care." when the window (browser or Electron) is minimized. A desktop notification can also help!
We should also explain to the user that they can alt-tab from the browser/Electron without problems, and the only two things they cannot do is to click the browser/Electron minimize button or change to another tab (when using Cockpit in the browser). This way they can use Cockpit without problems.
Disabling those alerts and notifications should be done on an explicit switch that doesn't follow the general "disable voice alerts" switch, as this is a more critical situation regarding safety.
This is a dangerous situation, and today we only console.log that.
We should have a voice alert that says something like "You're vehicle is armed and you explicitly minimized Cockpit. Your vehicle is not receiving joystick inputs anymore and can be in danger. Take care." when the window (browser or Electron) is minimized. A desktop notification can also help!
We should also explain to the user that they can alt-tab from the browser/Electron without problems, and the only two things they cannot do is to click the browser/Electron minimize button or change to another tab (when using Cockpit in the browser). This way they can use Cockpit without problems.
Disabling those alerts and notifications should be done on an explicit switch that doesn't follow the general "disable voice alerts" switch, as this is a more critical situation regarding safety.