Fixed referencing and dereferencing errors in apparatus

This commit is contained in:
Andrew nuark G 2020-12-22 19:17:28 +07:00
parent d69b18f083
commit f99974d8ae
12 changed files with 148 additions and 112 deletions

View file

@ -13,8 +13,8 @@ int main(int argc, char *argv[]) {
w.show();
QObject::connect(&a, &QApplication::aboutToQuit, []() {
apparatus::shutdown();
if (apparatus::isFirstRun()) {
apparatus::instance()->save();
if (apparatus::isFirstRun() && apparatus::instance()->get_auth_subsystem()->users().length() > 0) {
apparatus::generate_lock_file();
}
});