Calling destructor of notifications manager and hint database

Ensures to translate hints after change of language
This commit is contained in:
David Kocik 2021-09-01 17:58:55 +02:00
parent 5f7a4982f6
commit 42f4de94df
5 changed files with 17 additions and 0 deletions

View file

@ -1107,6 +1107,10 @@ NotificationManager::NotificationManager(wxEvtHandler* evt_handler) :
m_evt_handler(evt_handler)
{
}
NotificationManager::~NotificationManager()
{
HintDatabase::get_instance().uninit();
}
void NotificationManager::push_notification(const NotificationType type, int timestamp)
{
auto it = std::find_if(std::begin(basic_notifications), std::end(basic_notifications),