--hidden --minimized
This commit is contained in:
parent
e2b86eb239
commit
7402c57eb1
|
@ -102,6 +102,11 @@ class HUD_main(object):
|
||||||
|
|
||||||
# a main window
|
# a main window
|
||||||
self.main_window = gtk.Window()
|
self.main_window = gtk.Window()
|
||||||
|
if options.minimized:
|
||||||
|
self.main_window.iconify()
|
||||||
|
if options.hidden:
|
||||||
|
self.main_window.hide()
|
||||||
|
|
||||||
if options.xloc is not None or options.yloc is not None:
|
if options.xloc is not None or options.yloc is not None:
|
||||||
if options.xloc is None:
|
if options.xloc is None:
|
||||||
options.xloc = 0
|
options.xloc = 0
|
||||||
|
@ -126,6 +131,7 @@ class HUD_main(object):
|
||||||
self.main_window.set_icon_from_file('/usr/share/pixmaps/fpdb-cards.png')
|
self.main_window.set_icon_from_file('/usr/share/pixmaps/fpdb-cards.png')
|
||||||
else:
|
else:
|
||||||
self.main_window.set_icon_stock(gtk.STOCK_HOME)
|
self.main_window.set_icon_stock(gtk.STOCK_HOME)
|
||||||
|
if not options.hidden:
|
||||||
self.main_window.show_all()
|
self.main_window.show_all()
|
||||||
gobject.timeout_add(100, self.check_tables)
|
gobject.timeout_add(100, self.check_tables)
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,10 @@ def fpdb_options():
|
||||||
help=_("Y location to open Window"))
|
help=_("Y location to open Window"))
|
||||||
parser.add_option("--autoimport", action="store_true", dest="autoimport",
|
parser.add_option("--autoimport", action="store_true", dest="autoimport",
|
||||||
help=_("Auto-start Auto-import"))
|
help=_("Auto-start Auto-import"))
|
||||||
|
parser.add_option("--minimized", action="store_true", dest="minimized",
|
||||||
|
help=_("Start Minimized"))
|
||||||
|
parser.add_option("--hidden", action="store_true", dest="hidden",
|
||||||
|
help=_("Start Hidden"))
|
||||||
|
|
||||||
|
|
||||||
(options, argv) = parser.parse_args()
|
(options, argv) = parser.parse_args()
|
||||||
|
|
|
@ -1141,6 +1141,11 @@ You can find the full license texts in agpl-3.0.txt, gpl-2.0.txt, gpl-3.0.txt an
|
||||||
|
|
||||||
self.tab_main_help(None, None)
|
self.tab_main_help(None, None)
|
||||||
|
|
||||||
|
if options.minimized:
|
||||||
|
self.window.iconify()
|
||||||
|
if options.hidden:
|
||||||
|
self.window.hide()
|
||||||
|
|
||||||
self.window.show()
|
self.window.show()
|
||||||
self.visible = True # Flip on
|
self.visible = True # Flip on
|
||||||
self.load_profile(create_db = True)
|
self.load_profile(create_db = True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user