tty: Extract config variable

This commit is contained in:
Ivan Molodetskikh
2024-01-03 08:41:27 +04:00
parent e005a795e7
commit be6e25f5fb
+3 -1
View File
@@ -565,9 +565,11 @@ impl Tty {
let mut planes = surface.planes().clone();
let config = self.config.borrow();
// Overlay planes are disabled by default as they cause weird performance issues on my
// system.
if !self.config.borrow().debug.enable_overlay_planes {
if !config.debug.enable_overlay_planes {
planes.overlay.clear();
}