2023-06-21 20:07:36 +02:00
|
|
|
#include <hex/helpers/logger.hpp>
|
|
|
|
|
2023-12-23 21:09:41 +01:00
|
|
|
#include <popups/popup_notification.hpp>
|
2023-06-21 20:07:36 +02:00
|
|
|
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
|
|
|
void showError(const std::string& message){
|
2023-12-23 21:09:41 +01:00
|
|
|
ui::PopupError::open(message);
|
2023-06-21 20:07:36 +02:00
|
|
|
log::error(message);
|
|
|
|
}
|
|
|
|
|
|
|
|
void showWarning(const std::string& message){
|
2023-12-23 21:09:41 +01:00
|
|
|
ui::PopupWarning::open(message);
|
2023-06-21 20:07:36 +02:00
|
|
|
log::warn(message);
|
|
|
|
}
|
|
|
|
}
|