qvm-prefs: unify 'seamless_gui_mode' with other true/false properties
This commit is contained in:
parent
7be7cf2c5e
commit
0e37ac617a
@ -445,14 +445,7 @@ def set_seamless_gui_mode(vms, vm, args):
|
|||||||
print >> sys.stderr, "Missing value (true/false)!"
|
print >> sys.stderr, "Missing value (true/false)!"
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not args[0].lower() in ['true', 'false']:
|
vm.seamless_gui_mode = bool(eval(args[0].capitalize()))
|
||||||
print >> sys.stderr, "Invalid value, expected 'true' or 'false'"
|
|
||||||
return False
|
|
||||||
|
|
||||||
if args[0].lower() == 'true':
|
|
||||||
vm.seamless_gui_mode = True
|
|
||||||
else:
|
|
||||||
vm.seamless_gui_mode = False
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def set_autostart(vms, vm, args):
|
def set_autostart(vms, vm, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user