b7d8e46288
In order to do this I add to make some other additions : - Add a warning popup (TODO, maybe add some icons to differentiate error/warning popups in a future PR ?) - create showError() and showWarning() functions, as helpers to show a message both to the logs and as a popup
17 lines
361 B
C++
17 lines
361 B
C++
#include <hex/helpers/logger.hpp>
|
|
|
|
#include <content/popups/popup_notification.hpp>
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
void showError(const std::string& message){
|
|
PopupError::open(message);
|
|
log::error(message);
|
|
}
|
|
|
|
void showWarning(const std::string& message){
|
|
PopupWarning::open(message);
|
|
log::warn(message);
|
|
}
|
|
}
|