From de79bf1b5c5e9b1575bd6fd3fb0d5644ee3f8b66 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 2 Sep 2018 15:56:01 +0200 Subject: [PATCH] gtk.main(): make source more readable + comment about cli & gui --- lib/solaar/gtk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 lib/solaar/gtk.py diff --git a/lib/solaar/gtk.py b/lib/solaar/gtk.py old mode 100644 new mode 100755 index f7284205..0beb6450 --- a/lib/solaar/gtk.py +++ b/lib/solaar/gtk.py @@ -85,7 +85,9 @@ def main(): args = _parse_arguments() if not args: return - if args.action: return _cli.run(args.action, args.hidraw_path) + if args.action: + # if any argument, run comandline and exit + return _cli.run(args.action, args.hidraw_path) gi = _require('gi', 'python-gi') gi.require_version('Gtk', '3.0')