mirror of https://github.com/Poikilos/b3view
parent
29f52a1ad1
commit
3e6f8324eb
|
@ -343,6 +343,7 @@ Engine::Engine()
|
||||||
this->m_EnableTestAndExit = false;
|
this->m_EnableTestAndExit = false;
|
||||||
settings.set_int("max_recent", 10);
|
settings.set_int("max_recent", 10);
|
||||||
std::string profile = std::getenv("HOME");
|
std::string profile = std::getenv("HOME");
|
||||||
|
// ^ changes to USERPROFILE below if blank
|
||||||
std::string appdataParent;
|
std::string appdataParent;
|
||||||
std::string appdatas;
|
std::string appdatas;
|
||||||
std::string myAppData;
|
std::string myAppData;
|
||||||
|
|
|
@ -35,6 +35,9 @@ const u32 UserInterface::UIC_FILE_RECENT_FIRST = UIE_RECENTMENU + 1;
|
||||||
// PRIVATE
|
// PRIVATE
|
||||||
void UserInterface::setupUserInterface()
|
void UserInterface::setupUserInterface()
|
||||||
{
|
{
|
||||||
|
this->recent_initialized = false;
|
||||||
|
this->recentMenu = nullptr;
|
||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
menu = m_Gui->addMenu();
|
menu = m_Gui->addMenu();
|
||||||
menu->addItem(L"File", UIE_FILEMENU, true, true);
|
menu->addItem(L"File", UIE_FILEMENU, true, true);
|
||||||
|
@ -893,8 +896,10 @@ void UserInterface::addRecentMenuItem(std::string path, bool addToEngine)
|
||||||
}
|
}
|
||||||
this->m_file_recent_last_idx = menu->getID();
|
this->m_file_recent_last_idx = menu->getID();
|
||||||
*/
|
*/
|
||||||
|
if (addToEngine) {
|
||||||
this->m_Engine->addRecent(path);
|
this->m_Engine->addRecent(path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserInterface::addRecentMenuItems(std::vector<std::string> paths, bool addToEngine)
|
void UserInterface::addRecentMenuItems(std::vector<std::string> paths, bool addToEngine)
|
||||||
|
|
Loading…
Reference in New Issue