diff src/core/config.cc @ 223:84e0a3c4737a

library: implement menu bar buttons I also went ahead and put the links from Taiga in so I don't have to worry about it later...
author Paper <mrpapersonic@gmail.com>
date Mon, 08 Jan 2024 16:54:16 -0500
parents 53211cb1e7f5
children 7ca56c4ac0bc
line wrap: on
line diff
--- a/src/core/config.cc	Mon Jan 08 13:22:09 2024 -0500
+++ b/src/core/config.cc	Mon Jan 08 16:54:16 2024 -0500
@@ -90,6 +90,8 @@
 
 	theme.SetTheme(Translate::ToTheme(INI::GetIniValue<std::string>(ini, "Appearance", "Theme", "Default")));
 
+	library.paths = Strings::Split(INI::GetIniValue<std::string>(ini, "Library", "Folders", ""), ";");
+
 	return 0;
 }
 
@@ -131,6 +133,8 @@
 		}
 	}
 
+	INI::SetIniValue(ini, "Library", "Folders", Strings::Implode(library.paths, ";"));
+
 	file.write(ini);
 
 	return 0;