mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Warnings about missing theme/style handlers being printed on launch
This commit is contained in:
@@ -122,7 +122,7 @@ namespace hex {
|
||||
}
|
||||
}
|
||||
|
||||
if (theme.contains("colors")) {
|
||||
if (theme.contains("colors") && !s_themeHandlers.empty()) {
|
||||
for (const auto&[type, content] : theme["colors"].items()) {
|
||||
if (!s_themeHandlers.contains(type)) {
|
||||
log::warn("No theme handler found for '{}'", type);
|
||||
@@ -147,7 +147,7 @@ namespace hex {
|
||||
}
|
||||
}
|
||||
|
||||
if (theme.contains("styles")) {
|
||||
if (theme.contains("styles") && !s_styleHandlers.empty()) {
|
||||
for (const auto&[type, content] : theme["styles"].items()) {
|
||||
if (!s_styleHandlers.contains(type)) {
|
||||
log::warn("No style handler found for '{}'", type);
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <TextEditor.h>
|
||||
#include <romfs/romfs.hpp>
|
||||
|
||||
#include <hex/helpers/utils.hpp>
|
||||
#include <hex/helpers/fs.hpp>
|
||||
|
||||
#include <hex/api/event.hpp>
|
||||
|
||||
Reference in New Issue
Block a user