diff --git a/juci/config.cc b/juci/config.cc index 22dbffb..0b9cd6a 100644 --- a/juci/config.cc +++ b/juci/config.cc @@ -4,6 +4,7 @@ MainConfig::MainConfig() : keybindings_cfg_(), source_cfg_() { boost::property_tree::json_parser::read_json("config.json", cfg_); + GenerateSource(); GenerateKeybindings(); GenerateDirectoryFilter(); @@ -28,10 +29,8 @@ void MainConfig::GenerateKeybindings() { std::string line; std::ifstream menu_xml("menu.xml"); if (menu_xml.is_open()) { - while (getline(menu_xml, line)) { - keybindings_cfg_.AppendXml(line); - } - + while (getline(menu_xml, line)) + keybindings_cfg_.AppendXml(line); } boost::property_tree::ptree keys_json = cfg_.get_child("keybindings"); for (auto &i : keys_json) diff --git a/juci/notebook.cc b/juci/notebook.cc index 53c4d8b..44470e9 100644 --- a/juci/notebook.cc +++ b/juci/notebook.cc @@ -25,7 +25,7 @@ Notebook::Controller::Controller(Gtk::Window* window, Keybindings::Controller& k ispopup = false; view().pack1(directories_.widget(), true, true); CreateKeybindings(keybindings); - INFO("Notebook Controller Sucsess"); + INFO("Notebook Controller Success"); } // Constructor