fix(ui): fixed background picture updating on "update background" switch disabled

This commit is contained in:
Observer KRypt0n_ 2023-03-04 19:32:56 +02:00
parent 714c4758d0
commit 3ccd66aa74
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 2 additions and 2 deletions

View file

@ -570,7 +570,7 @@ impl SimpleComponent for App {
tracing::info!("Main window initialized");
let download_picture = model.style == LauncherStyle::Classic;
let download_picture = model.style == LauncherStyle::Classic && !KEEP_BACKGROUND_FILE.exists();
// Initialize some heavy tasks
std::thread::spawn(move || {

View file

@ -657,7 +657,7 @@ impl SimpleAsyncComponent for GeneralApp {
#[allow(unused_must_use)]
GeneralAppMsg::UpdateLauncherStyle(style) => {
if style == LauncherStyle::Classic && !BACKGROUND_FILE.exists() {
if style == LauncherStyle::Classic && !KEEP_BACKGROUND_FILE.exists() {
if let Err(err) = crate::background::download_background() {
tracing::error!("Failed to download background picture");