mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
feat: Added function to show toast messages, moved native error message function to libimhex
This commit is contained in:
@@ -44,15 +44,6 @@ namespace hex {
|
||||
return false;
|
||||
}
|
||||
|
||||
void nativeErrorMessage(const std::string &message) {
|
||||
log::fatal("{}", message);
|
||||
if (isFileInPath("zenity")) {
|
||||
executeCmd({"zenity", "--error", "--text", message});
|
||||
} else if (isFileInPath("notify-send")) {
|
||||
executeCmd({"notify-send", "-i", "script-error", "Error", message});
|
||||
} // Hopefully one of these commands is installed
|
||||
}
|
||||
|
||||
#if defined(IMHEX_HAS_FONTCONFIG)
|
||||
static bool enumerateFontConfig() {
|
||||
if (!FcInit())
|
||||
|
||||
Reference in New Issue
Block a user