You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have my PC connected to my TV, and whenever it is turned off and then on, the TV no longer appears when I use my hotkey to scroll between playback devices. When I go to settings, I find a duplicate in 'connected' (same name, I'm not sure what is different internally, or what the internal data even contains), which I have to add to my selected list to use. The previous one that I've added previously does not work, even though it is there. The screenshot is at a point where I have added the newly added device in to the selected list.
If there is a more consistent piece of data in the device object (even the name), it could be used to detect reconnected devices.
Thank you.
The text was updated successfully, but these errors were encountered:
I was looking at my logs and realized that the Id of the device changes when it is reconnected, and is not added back into the selected list when the app refreshes. In the overridden Equals fn inside DeviceInfo.cs, checking against the name as well should be able to identify the device again, given that the DeviceInfo (of DeviceFullInfo) only contains id, name, and type.
However, since the GenerateListViewItem runs through all devices (even those in a disconnected state), even the disconnected devices with the same name will show up on the selected list. My changes also make it such that only the connected devices show up on the selected list.
I am assuming that the selected list is kept in some kind of local storage, and not altered just because disconnected devices don't show up in the selected list. GenerateListViewItem seems to be just a UI thing, but the changes made to the condition of adding to the selected list should not alter the internal data of the selected list.
SoundSwitch.zip
I have my PC connected to my TV, and whenever it is turned off and then on, the TV no longer appears when I use my hotkey to scroll between playback devices. When I go to settings, I find a duplicate in 'connected' (same name, I'm not sure what is different internally, or what the internal data even contains), which I have to add to my selected list to use. The previous one that I've added previously does not work, even though it is there. The screenshot is at a point where I have added the newly added device in to the selected list.
If there is a more consistent piece of data in the device object (even the name), it could be used to detect reconnected devices.
Thank you.
The text was updated successfully, but these errors were encountered: