Skip to content

Commit ea5fe83

Browse files
committed
Fix "expected enumeration type void, but got PyGLibOptionArg instead" warning
1 parent e9dea7c commit ea5fe83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scc/gui/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ def on_cbProfileIsTemplate_toggled(self, widget, *a):
14731473

14741474
def setup_commandline(self):
14751475
def aso(long_name, short_name, description,
1476-
arg=GLib.OptionArg.NONE,
1476+
arg=None,
14771477
flags=GLib.OptionFlags.IN_MAIN):
14781478
""" add_simple_option, adds program argument in simple way """
14791479
o = GLib.OptionEntry()
@@ -1482,7 +1482,8 @@ def aso(long_name, short_name, description,
14821482
o.short_name = short_name
14831483
o.description = description
14841484
o.flags = flags
1485-
o.arg = arg
1485+
if arg is not None:
1486+
o.arg = arg
14861487
self.add_main_option_entries([o])
14871488

14881489
self.connect('handle-local-options', self.do_local_options)

0 commit comments

Comments
 (0)