mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-13 19:15:07 -04:00
[MOS-296] Merge fix popup stack issues
Fix popup stack issues with Harmony
This commit is contained in:
@@ -70,9 +70,6 @@ namespace app
|
||||
auto ret = findInStack(window);
|
||||
if (ret != stack.end()) {
|
||||
stack.erase(std::next(ret), stack.end());
|
||||
if (onPopCallback) {
|
||||
onPopCallback(*this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -118,10 +115,7 @@ namespace app
|
||||
{
|
||||
return std::find_if(stack.begin(), stack.end(), [&](auto &el) { return el.name == window; });
|
||||
}
|
||||
void WindowsStack::registerOnPopCallback(std::function<void(WindowsStack &)> callback)
|
||||
{
|
||||
onPopCallback = std::move(callback);
|
||||
}
|
||||
|
||||
void WindowsStack::dropPendingPopups()
|
||||
{
|
||||
auto it = stack.rbegin();
|
||||
|
||||
Reference in New Issue
Block a user