mirror of
https://github.com/Guake/guake.git
synced 2025-10-26 11:27:13 +00:00
add --show and --hide remote controls
This commit is contained in:
parent
c6d99c3fe8
commit
8ca2b5c5e4
16
src/guake
16
src/guake
@ -1340,6 +1340,14 @@ def main():
|
||||
action='store_true', default=False,
|
||||
help=_('Toggles the visibility of the terminal window'))
|
||||
|
||||
parser.add_option('--show', dest="show",
|
||||
action='store_true', default=False,
|
||||
help=_('Shows Guake main window'))
|
||||
|
||||
parser.add_option('--hide', dest='hide',
|
||||
action='store_true', default=False,
|
||||
help=_('Hides Guake main window'))
|
||||
|
||||
parser.add_option('-p', '--preferences', dest='show_preferences',
|
||||
action='store_true', default=False,
|
||||
help=_('Shows Guake preference window'))
|
||||
@ -1391,6 +1399,14 @@ def main():
|
||||
if options.fullscreen:
|
||||
instance.fullscreen()
|
||||
|
||||
if options.show:
|
||||
remote_object.show()
|
||||
called_with_param = True
|
||||
|
||||
if options.hide:
|
||||
remote_object.hide()
|
||||
called_with_param = True
|
||||
|
||||
if options.show_preferences:
|
||||
remote_object.show_prefs()
|
||||
only_show_hide = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user