2023-06-21 20:07:36 +02:00
|
|
|
#include <hex/helpers/logger.hpp>
|
|
|
|
|
2023-12-26 00:22:47 +01:00
|
|
|
#include <toasts/toast_notification.hpp>
|
2023-06-21 20:07:36 +02:00
|
|
|
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
|
|
|
void showError(const std::string& message){
|
2023-12-26 00:22:47 +01:00
|
|
|
ui::ToastError::open(message);
|
2023-06-21 20:07:36 +02:00
|
|
|
log::error(message);
|
|
|
|
}
|
|
|
|
|
|
|
|
void showWarning(const std::string& message){
|
2023-12-26 00:22:47 +01:00
|
|
|
ui::ToastWarning::open(message);
|
2023-06-21 20:07:36 +02:00
|
|
|
log::warn(message);
|
|
|
|
}
|
|
|
|
}
|