mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Remove duplicate window name from macOS title bar
This commit is contained in:
@@ -3,13 +3,11 @@
|
||||
#if defined(OS_MACOS)
|
||||
|
||||
#include <hex/api/imhex_api.hpp>
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/event_manager.hpp>
|
||||
|
||||
#include <hex/helpers/utils_macos.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <cstdio>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -53,12 +51,16 @@ namespace hex {
|
||||
|
||||
if (themeFollowSystem)
|
||||
EventOSThemeChanged::post();
|
||||
|
||||
setupMacosWindowStyle(m_window);
|
||||
}
|
||||
|
||||
void Window::beginNativeWindowFrame() {
|
||||
|
||||
}
|
||||
|
||||
void Window::endNativeWindowFrame() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -814,9 +814,9 @@ namespace hex {
|
||||
continue;
|
||||
|
||||
const auto openViewCount = std::ranges::count_if(ContentRegistry::Views::impl::getEntries(), [](const auto &entry) {
|
||||
const auto &[unlocalizedName, view] = entry;
|
||||
const auto &[unlocalizedName, openView] = entry;
|
||||
|
||||
return view->hasViewMenuItemEntry() && view->shouldProcess();
|
||||
return openView->hasViewMenuItemEntry() && openView->shouldProcess();
|
||||
});
|
||||
|
||||
ImGuiWindowClass windowClass = {};
|
||||
|
||||
Reference in New Issue
Block a user