mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Notifications on Web build causing exceptions
This commit is contained in:
@@ -432,9 +432,10 @@ namespace hex::plugin::builtin {
|
||||
if (!taskFinishedNotificationEnabled)
|
||||
return;
|
||||
|
||||
|
||||
if (!ImHexApi::System::isMainWindowFocused() && !task.isBackgroundTask())
|
||||
hex::showToastMessage("ImHex", fmt::format("hex.builtin.os_toast_message.task_finished"_lang, Lang(task.getUnlocalizedName())));
|
||||
#if !defined(OS_WEB)
|
||||
if (!ImHexApi::System::isMainWindowFocused() && !task.isBackgroundTask())
|
||||
hex::showToastMessage("ImHex", fmt::format("hex.builtin.os_toast_message.task_finished"_lang, Lang(task.getUnlocalizedName())));
|
||||
#endif
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user