diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-06-05 20:28:55 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2021-06-05 20:28:55 -0500 |
| commit | 037d96a5d96bae6e341d8f7ca4f485d519cde02b (patch) | |
| tree | 6b25ebc80bd2ce74372241793ec2e4724acb71f1 /src/aobutton.cpp | |
| parent | d27501313cae78b838c1e738ebfaeae4740a23b4 (diff) | |
Use intuitive behavior for loading assets with ambiguous extensions
Diffstat (limited to 'src/aobutton.cpp')
| -rw-r--r-- | src/aobutton.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/aobutton.cpp b/src/aobutton.cpp index fb9da7d3..242fe79a 100644 --- a/src/aobutton.cpp +++ b/src/aobutton.cpp @@ -20,13 +20,8 @@ void AOButton::set_image(QString p_path, QString p_misc) { movie->stop(); QString p_image; - // Check if the user wants animated themes - if (ao_app->get_animated_theme()) - // We want an animated image - p_image = ao_app->get_image(p_path, ao_app->current_theme, ao_app->get_subtheme(), ao_app->default_theme, p_misc); - else - // Grab a static variant of the image - p_image = ao_app->get_image_path(ao_app->get_asset_paths(p_path, ao_app->current_theme, ao_app->get_subtheme(), ao_app->default_theme, p_misc), true); + p_image = ao_app->get_image(p_path, ao_app->current_theme, ao_app->get_subtheme(), + ao_app->default_theme, p_misc, "", "", !ao_app->get_animated_theme()); if (p_image.isEmpty()) { this->setIcon(QIcon()); this->setIconSize(this->size()); |
