Switch multiple displays flag in runtime

Already created ui::Window are not modified and closed/reopened.
This commit is contained in:
David Capello 2021-04-20 14:14:54 -03:00
parent c1be8f6727
commit 660407c9b2

View File

@ -778,6 +778,10 @@ public:
warnings));
}
// Probably it's safe to switch this flag in runtime
if (m_pref.experimental.multipleWindows() != ui::get_multiple_displays())
ui::set_multiple_displays(m_pref.experimental.multipleWindows());
if (reset_screen)
updateScreenScaling();
}