mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 02:19:00 -05:00
18 lines
492 B
C++
18 lines
492 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "SearchEngineWindowPresenter.hpp"
|
|
#include <utility>
|
|
|
|
namespace app::notes
|
|
{
|
|
void SearchEngineWindowPresenter::searchFor(const std::string &searchText)
|
|
{
|
|
if (searchText.empty()) {
|
|
getView()->emptySearch();
|
|
return;
|
|
}
|
|
getView()->processValidSearch(searchText);
|
|
}
|
|
} // namespace app::notes
|