Skip to content

Commit d8ddc78

Browse files
committed
logic simplified
1 parent 739c40d commit d8ddc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tray.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ RadioTrayLite::build_menu()
246246

247247
set_current_broadcast();
248248

249-
auto turn_on = (em->state == StationState::PLAYING ? false : true);
249+
auto turn_on = not(em->state == StationState::PLAYING);
250250
set_current_station(turn_on);
251251
}
252252

0 commit comments

Comments
 (0)