mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Settings: semi-automatic callback cleanup
This commit is contained in:
@@ -170,9 +170,7 @@ void Hud::readScalingSetting()
|
||||
|
||||
Hud::~Hud()
|
||||
{
|
||||
g_settings->deregisterChangedCallback("dpi_change_notifier", setting_changed_callback, this);
|
||||
g_settings->deregisterChangedCallback("display_density_factor", setting_changed_callback, this);
|
||||
g_settings->deregisterChangedCallback("hud_scaling", setting_changed_callback, this);
|
||||
g_settings->deregisterAllChangedCallbacks(this);
|
||||
|
||||
if (m_selection_mesh)
|
||||
m_selection_mesh->drop();
|
||||
|
Reference in New Issue
Block a user