1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

FileManager: Make DirectoryView listen for configuration changes

DirectoryView now inherits from Config::Listener and will update its
view mode immediately if changed from elsewhere.

This is pretty neat. :^)
This commit is contained in:
Andreas Kling 2021-08-26 19:15:55 +02:00
parent c8c58626e9
commit 696dbc889f
3 changed files with 18 additions and 1 deletions

View file

@ -92,6 +92,7 @@ int main(int argc, char** argv)
}
Config::pledge_domains({ "FileManager", "WindowManager" });
Config::monitor_domain("FileManager");
if (is_desktop_mode)
return run_in_desktop_mode();