fix: Settings not being written anymore after restart
This commit is contained in:
parent
d078f9d847
commit
125d6a3e2a
@ -50,11 +50,13 @@ namespace hex {
|
|||||||
|
|
||||||
T& operator=(const T &value) {
|
T& operator=(const T &value) {
|
||||||
m_value = value;
|
m_value = value;
|
||||||
|
m_valid = true;
|
||||||
return m_value;
|
return m_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
T& operator=(T &&value) noexcept {
|
T& operator=(T &&value) noexcept {
|
||||||
m_value = std::move(value);
|
m_value = std::move(value);
|
||||||
|
m_valid = true;
|
||||||
return m_value;
|
return m_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +87,8 @@ namespace hex {
|
|||||||
|
|
||||||
EventWindowDeinitializing::post(m_window);
|
EventWindowDeinitializing::post(m_window);
|
||||||
|
|
||||||
|
ContentRegistry::Settings::impl::store();
|
||||||
|
|
||||||
this->exitImGui();
|
this->exitImGui();
|
||||||
this->exitGLFW();
|
this->exitGLFW();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user