Fix for unnecessary write operations

Multiple emitSelectorsChanged calls during mode switch resulted in 6
file write operations