Changeset 658 for trunk/StreamVision


Ignore:
Timestamp:
04/22/13 23:12:11 (12 years ago)
Author:
Nicholas Riley
Message:

Persist usingStereo if we can't read status from iTunes.

Avoids switching on stereo when you're in another Space (or in
10.7+'s fullscreen).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r656 r658  
    112112        remote_speakers = iTunesWindow.buttons[its.attributes['AXDescription'].value.beginswith(u'AirPlay')].title()
    113113    except CommandError: # window on another Space?
    114         return True
     114        return usingStereo
    115115    return remote_speakers and remote_speakers[0] not in (None, k.missing_value)
    116116
Note: See TracChangeset for help on using the changeset viewer.