mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
chore(StatusQ/Utils): return StackView's push/pop return values from push/pop methods in StackViewStates
It allows to access pushed/popped items when using StackViewStates for managing StackView.
This commit is contained in:
parent
3a801955e8
commit
8cd6de5013
@ -23,7 +23,7 @@ QtObject {
|
||||
statesStack.push(state)
|
||||
|
||||
// Stack view related operations:
|
||||
stackView.push(item, properties, operation)
|
||||
return stackView.push(item, properties, operation)
|
||||
}
|
||||
|
||||
function pop(operation) {
|
||||
@ -31,7 +31,7 @@ QtObject {
|
||||
statesStack.pop()
|
||||
|
||||
// Stack view related operations:
|
||||
stackView.pop(operation)
|
||||
return stackView.pop(operation)
|
||||
}
|
||||
|
||||
function clear(initialState, operation) {
|
||||
@ -40,6 +40,6 @@ QtObject {
|
||||
statesStack.push(initialState)
|
||||
|
||||
// Stack view related operations:
|
||||
stackView.pop(null, operation) // Resetting to the initial stack state
|
||||
return stackView.pop(null, operation) // Resetting to the initial stack state
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user