Skip to content

Commit 9b38eec

Browse files
committed
Rename variable (less brain twisting)
1 parent 40256dc commit 9b38eec

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/guake

+10-14
Original file line numberDiff line numberDiff line change
@@ -1372,50 +1372,46 @@ def main():
13721372
remote_object = DbusManager(instance)
13731373
already_running = False
13741374

1375-
called_with_param = False
1375+
only_show_hide = True
13761376

13771377
if options.fullscreen:
13781378
instance.fullscreen()
13791379

1380-
if options.show_hide:
1381-
remote_object.show_hide()
1382-
called_with_param = True
1383-
13841380
if options.show_preferences:
13851381
remote_object.show_prefs()
1386-
called_with_param = True
1382+
only_show_hide = False
13871383

13881384
if options.new_tab:
13891385
remote_object.add_tab(options.new_tab)
1390-
called_with_param = True
1386+
only_show_hide = False
13911387

13921388
if options.select_tab:
13931389
selected = int(options.select_tab)
13941390
remote_object.select_tab(selected)
1395-
called_with_param = True
1391+
only_show_hide = False
13961392

13971393
if options.selected_tab:
13981394
selected = remote_object.get_selected_tab()
13991395
sys.stdout.write('%d\n' % selected)
1400-
called_with_param = True
1396+
only_show_hide = False
14011397

14021398
if options.command:
14031399
remote_object.execute_command(options.command)
1404-
called_with_param = True
1400+
only_show_hide = False
14051401

14061402
if options.rename_tab:
14071403
remote_object.rename_current_tab(options.rename_tab)
1408-
called_with_param = True
1404+
only_show_hide = False
14091405

14101406
if options.show_about:
14111407
remote_object.show_about()
1412-
called_with_param = True
1408+
only_show_hide = False
14131409

14141410
if options.quit:
14151411
remote_object.quit()
1416-
called_with_param = True
1412+
only_show_hide = False
14171413

1418-
if not called_with_param and already_running:
1414+
if already_running and only_show_hide:
14191415
# here we know that guake was called without any parameter and
14201416
# it is already running, so, lets toggle its visibility.
14211417
remote_object.show_hide()

0 commit comments

Comments
 (0)