1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

WindowServer: Fix AppletManager build

This commit is contained in:
Andreas Kling 2020-04-19 20:24:03 +02:00
parent c45e16f605
commit c5730ed6a3

View file

@ -79,7 +79,7 @@ void AppletManager::add_applet(Window& applet)
quick_sort(m_applets, [](auto& a, auto& b) {
auto index_a = order_vector.find_first_index(a->title());
auto index_b = order_vector.find_first_index(b->title());
return index_a.value_or("") > index_b.value_or("");
return index_a.value_or(0) > index_b.value_or(0);
});
calculate_applet_rects(MenuManager::the().window());