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:
parent
c8c58626e9
commit
696dbc889f
3 changed files with 18 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue