Roll back unintended changes

This commit is contained in:
oldmud0 2021-12-18 22:41:45 -06:00
parent b0e9f8dbe5
commit ecfb791e48
2 changed files with 3 additions and 4 deletions

View File

@ -16,7 +16,6 @@ AOApplication::AOApplication(int &argc, char **argv) : QApplication(argc, argv)
net_manager = new NetworkManager(this);
discord = new AttorneyOnline::Discord();
qApp->setStyleSheet("QFrame {background-color:transparent;} QAbstractItemView {background-color: transparent; color: black;}; QLineEdit {background-color:transparent;}");
asset_lookup_cache.reserve(2048);
}

View File

@ -1255,12 +1255,12 @@ void AOOptionsDialog::save_pressed()
mountPaths.append(ui_mount_list->item(i)->text());
configini->setValue("mount_paths", mountPaths);
if (asset_cache_dirty)
ao_app->invalidate_lookup_cache();
if (audioChanged)
ao_app->initBASS();
if (asset_cache_dirty)
ao_app->invalidate_lookup_cache();
// We most probably pressed "Restore defaults" at some point. Since we're saving our settings, remove the temporary file.
if (QFile::exists(ao_app->get_base_path() + "config.temp"))
QFile::remove(ao_app->get_base_path() + "config.temp");