def _choose_what_to_display(self, force_refresh=False):
for _ in range(len(self.available_combinations)):<EOL><INDENT>if (<EOL>self.displayed is None<EOL>and self.available_combinations[<NUM_LIT:0>] == self.active_layout<EOL>):<EOL><INDENT>self.displayed = self.available_combinations[<NUM_LIT:0>]<EOL>break<EOL><DEDENT>else:<EOL><INDENT>if self.displayed == self.available_combinations[<NUM_LIT:0>]:<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>self.available_combinations.rotate(<NUM_LIT:1>)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>if force_refresh:<EOL><INDENT>self.displayed = self.available_combinations[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>self.py3.log('<STR_LIT>')<EOL><DEDENT><DEDENT>
Choose what combination to display on the bar.

By default we try to display the active layout on the first run, else
we display the last selected combination.