Switch user button not working since button validation added (development)

Bug #376717 reported by genisis300
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OBLogout
Fix Committed
Medium
Andrew Williams

Bug Description

the validiation code that is in place to make sure the buttons exist doesn't work as intended.

beacuse the config file store thes the switch command as switchuser but the validation code looks for switch it automaticly removes the switch button with the following output

WARNING Command for button switch is undefined removing.

the quickist solution was to rename the switchuser to switch in the config file.
although it is less human that way.

i also found that if you renamed the validation to switchuser it works but the icon would have to be renamed as well.

i also found the following work but it's a bit messy

self.cmd_switch = self.cmd_switchuser
insert before:
        for button in list:

Related branches

Changed in oblogout:
assignee: nobody → Andrew Williams (nikdoof)
importance: Undecided → Medium
milestone: none → 0.3
Revision history for this message
Andrew Williams (nikdoof) wrote :

Issue is caused by the switch command being defined as "switchuser" and the button being named "switch", causing the command mismatch and for the validation to remove the button from the working list.

Simple rename of the switchuser variable will resolve this issue.

Revision history for this message
Andrew Williams (nikdoof) wrote :

Fix has been commited to 0.3 dev.

Changed in oblogout:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.