@@ -1372,50 +1372,46 @@ def main():
1372
1372
remote_object = DbusManager (instance )
1373
1373
already_running = False
1374
1374
1375
- called_with_param = False
1375
+ only_show_hide = True
1376
1376
1377
1377
if options .fullscreen :
1378
1378
instance .fullscreen ()
1379
1379
1380
- if options .show_hide :
1381
- remote_object .show_hide ()
1382
- called_with_param = True
1383
-
1384
1380
if options .show_preferences :
1385
1381
remote_object .show_prefs ()
1386
- called_with_param = True
1382
+ only_show_hide = False
1387
1383
1388
1384
if options .new_tab :
1389
1385
remote_object .add_tab (options .new_tab )
1390
- called_with_param = True
1386
+ only_show_hide = False
1391
1387
1392
1388
if options .select_tab :
1393
1389
selected = int (options .select_tab )
1394
1390
remote_object .select_tab (selected )
1395
- called_with_param = True
1391
+ only_show_hide = False
1396
1392
1397
1393
if options .selected_tab :
1398
1394
selected = remote_object .get_selected_tab ()
1399
1395
sys .stdout .write ('%d\n ' % selected )
1400
- called_with_param = True
1396
+ only_show_hide = False
1401
1397
1402
1398
if options .command :
1403
1399
remote_object .execute_command (options .command )
1404
- called_with_param = True
1400
+ only_show_hide = False
1405
1401
1406
1402
if options .rename_tab :
1407
1403
remote_object .rename_current_tab (options .rename_tab )
1408
- called_with_param = True
1404
+ only_show_hide = False
1409
1405
1410
1406
if options .show_about :
1411
1407
remote_object .show_about ()
1412
- called_with_param = True
1408
+ only_show_hide = False
1413
1409
1414
1410
if options .quit :
1415
1411
remote_object .quit ()
1416
- called_with_param = True
1412
+ only_show_hide = False
1417
1413
1418
- if not called_with_param and already_running :
1414
+ if already_running and only_show_hide :
1419
1415
# here we know that guake was called without any parameter and
1420
1416
# it is already running, so, lets toggle its visibility.
1421
1417
remote_object .show_hide ()
0 commit comments