MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / resetForRestart

Method resetForRestart

src/moapplication.cpp:501–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void MOApplication::resetForRestart()
502{
503 LogModel::instance().clear();
504 ResetExitFlag();
505
506 // make sure the log file isn't locked in case MO was restarted and
507 // the previous instance gets deleted
508 log::getDefault().setFile({});
509
510 // clear instance and profile overrides
511 InstanceManager::singleton().clearOverrides();
512
513 m_core = {};
514 m_plugins = {};
515 m_nexus = {};
516 m_settings = {};
517 m_instance = {};
518}
519
520bool MOApplication::setStyleFile(const QString& styleName)
521{

Callers 1

runFunction · 0.80

Calls 3

ResetExitFlagFunction · 0.85
clearOverridesMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected