[Touch-packages] [Bug 1577351] Re: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked
** Changed in: ubuntu-ui-toolkit (Ubuntu) Assignee: (unassigned) => Christian Dywan (kalikiana) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1577351 Title: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked Status in Canonical System Image: Confirmed Status in ubuntu-ui-toolkit package in Ubuntu: Confirmed Bug description: OptionSelector { onSelectedIndexChanged: { console.log("SelectedIndex Changed") } onTriggered: { console.log("On Triggered") } onDelegateClicked: { console.log("Delegate Clicked: " + index) } With this example we see that onTriggered and onDelegateClicked are being fired before selectedIndex has been updated. This makes the onTriggered quite useless, as the important info of which is the selectedIndex is not there yet. onDelegateClicked suffers from the same problem, although it's index argument allows to workaround this bug. IMHO having the selectedIndex updated before triggering these signals is a justifiable and sane behavior. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1577351/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1577351] Re: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1577351 Title: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked Status in Canonical System Image: Confirmed Status in ubuntu-ui-toolkit package in Ubuntu: Confirmed Bug description: OptionSelector { onSelectedIndexChanged: { console.log("SelectedIndex Changed") } onTriggered: { console.log("On Triggered") } onDelegateClicked: { console.log("Delegate Clicked: " + index) } With this example we see that onTriggered and onDelegateClicked are being fired before selectedIndex has been updated. This makes the onTriggered quite useless, as the important info of which is the selectedIndex is not there yet. onDelegateClicked suffers from the same problem, although it's index argument allows to workaround this bug. IMHO having the selectedIndex updated before triggering these signals is a justifiable and sane behavior. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1577351/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1577351] Re: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked
** Changed in: canonical-devices-system-image Status: New => Confirmed ** Changed in: canonical-devices-system-image Assignee: (unassigned) => Zoltan Balogh (bzoltan) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1577351 Title: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked Status in Canonical System Image: Confirmed Status in ubuntu-ui-toolkit package in Ubuntu: Confirmed Bug description: OptionSelector { onSelectedIndexChanged: { console.log("SelectedIndex Changed") } onTriggered: { console.log("On Triggered") } onDelegateClicked: { console.log("Delegate Clicked: " + index) } With this example we see that onTriggered and onDelegateClicked are being fired before selectedIndex has been updated. This makes the onTriggered quite useless, as the important info of which is the selectedIndex is not there yet. onDelegateClicked suffers from the same problem, although it's index argument allows to workaround this bug. IMHO having the selectedIndex updated before triggering these signals is a justifiable and sane behavior. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1577351/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1577351] Re: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked
** Also affects: canonical-devices-system-image Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1577351 Title: OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked Status in Canonical System Image: New Status in ubuntu-ui-toolkit package in Ubuntu: New Bug description: OptionSelector { onSelectedIndexChanged: { console.log("SelectedIndex Changed") } onTriggered: { console.log("On Triggered") } onDelegateClicked: { console.log("Delegate Clicked: " + index) } With this example we see that onTriggered and onDelegateClicked are being fired before selectedIndex has been updated. This makes the onTriggered quite useless, as the important info of which is the selectedIndex is not there yet. onDelegateClicked suffers from the same problem, although it's index argument allows to workaround this bug. IMHO having the selectedIndex updated before triggering these signals is a justifiable and sane behavior. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1577351/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp