Plan picked path callbacks in app core

This commit is contained in:
2026-06-03 03:33:33 +02:00
parent 777723b68c
commit 712c28068d
10 changed files with 165 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <string_view>
namespace pp::app {
enum class PickedPathAction {
ignore_empty_path,
invoke_callback,
};
[[nodiscard]] constexpr PickedPathAction plan_picked_path(std::string_view path) noexcept
{
return path.empty()
? PickedPathAction::ignore_empty_path
: PickedPathAction::invoke_callback;
}
}