diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-12-18 22:41:45 -0600 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2021-12-18 22:41:45 -0600 |
| commit | ecfb791e483234308b1edacb87e499860a63e510 (patch) | |
| tree | 0be2906d57ba9d1338e73422a1800724df46e0e7 /src | |
| parent | b0e9f8dbe57df5e688d9583987d7e378eebd72b4 (diff) | |
Roll back unintended changes
Diffstat (limited to 'src')
| -rw-r--r-- | src/aoapplication.cpp | 1 | ||||
| -rw-r--r-- | src/aooptionsdialog.cpp | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/aoapplication.cpp b/src/aoapplication.cpp index f516be38..3d37c32f 100644 --- a/src/aoapplication.cpp +++ b/src/aoapplication.cpp @@ -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); } diff --git a/src/aooptionsdialog.cpp b/src/aooptionsdialog.cpp index 54a11e13..7413db3a 100644 --- a/src/aooptionsdialog.cpp +++ b/src/aooptionsdialog.cpp @@ -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"); |
