Switch log types to enum

This commit is contained in:
Yousef Khadadeh 2026-05-16 21:56:58 +03:00
parent 24b2be60e5
commit 4c14c3dc57
27 changed files with 203 additions and 105 deletions

View file

@ -287,10 +287,8 @@ template <typename T> bool TextBox<T>::update_data() {
}
template <typename T> TextBox<T>::~TextBox() {
if(is_selected()) {
Logger::get().log("INFO", "Destroy");
if(is_selected())
CustomEvents::emit_event(CustomEvents::RefreshTextBoxInputEvent{});
}
}
}

View file

@ -621,7 +621,7 @@ void GUIManager::single_layout_run() {
}
void GUIManager::clay_error_handler(Clay_ErrorData errorData) {
Logger::get().log("INFO", "[Clay Error] " + std::string(errorData.errorText.chars));
Logger::get().log(Logger::LogType::INFO, "[Clay Error] " + std::string(errorData.errorText.chars));
}
void GUIManager::in_dynamic_area(const std::function<void()>& f) {