mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
@@ -37,7 +37,7 @@ namespace hex::plugin::builtin {
|
||||
ProjectFile::setBookmarks(this->m_bookmarks);
|
||||
});
|
||||
|
||||
EventManager::subscribe<EventFileUnloaded>(this, [this] {
|
||||
EventManager::subscribe<EventProviderDeleted>(this, [this](const auto*) {
|
||||
this->m_bookmarks.clear();
|
||||
});
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace hex::plugin::builtin {
|
||||
EventManager::unsubscribe<RequestAddBookmark>(this);
|
||||
EventManager::unsubscribe<EventProjectFileLoad>(this);
|
||||
EventManager::unsubscribe<EventProjectFileStore>(this);
|
||||
EventManager::unsubscribe<EventFileUnloaded>(this);
|
||||
EventManager::unsubscribe<EventProviderDeleted>(this);
|
||||
|
||||
this->m_bookmarks.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user