mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: Task finished notification showing up regardless of focus state on Windows
This commit is contained in:
@@ -432,7 +432,8 @@ namespace hex::plugin::builtin {
|
||||
if (!taskFinishedNotificationEnabled)
|
||||
return;
|
||||
|
||||
if (!glfwGetWindowAttrib(ImHexApi::System::getMainWindowHandle(), GLFW_FOCUSED) && !task.isBackgroundTask())
|
||||
|
||||
if (!ImHexApi::System::isMainWindowFocused() && !task.isBackgroundTask())
|
||||
hex::showToastMessage("ImHex", fmt::format("hex.builtin.os_toast_message.task_finished"_lang, Lang(task.getUnlocalizedName())));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user