mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-20 06:28:14 -04:00
[ENG-631] TopBar improvements & misc fixes (#837)
* fix things * added back/forward buttons to settings * split top bar context into left and right * hook up path * fix background jobs hidden from job manager * core * fix type + quick preview transition * fix selected item color contrast * fix close button on quick preview * clean up job ui for light theme * Improve media view overscan --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
This commit is contained in:
@@ -167,9 +167,7 @@ impl JobManager {
|
||||
|
||||
for worker in self.running_workers.read().await.values() {
|
||||
let report = worker.lock().await.report();
|
||||
if !report.is_background {
|
||||
ret.push(report);
|
||||
}
|
||||
ret.push(report);
|
||||
}
|
||||
ret
|
||||
}
|
||||
|
||||
@@ -428,25 +428,26 @@ pub async fn light_scan_location(
|
||||
}
|
||||
|
||||
let location_base_data = location::Data::from(&location);
|
||||
|
||||
// removed grouping for background jobs, they don't need to be grouped as only running ones are shown to the user
|
||||
library
|
||||
.spawn_job(
|
||||
Job::new_with_action(
|
||||
ShallowIndexerJobInit {
|
||||
location,
|
||||
sub_path: sub_path.clone(),
|
||||
},
|
||||
"light_scan_location",
|
||||
)
|
||||
.queue_next(ShallowFileIdentifierJobInit {
|
||||
location: location_base_data.clone(),
|
||||
sub_path: sub_path.clone(),
|
||||
})
|
||||
.queue_next(ShallowThumbnailerJobInit {
|
||||
location: location_base_data,
|
||||
sub_path,
|
||||
}),
|
||||
)
|
||||
.spawn_job(ShallowIndexerJobInit {
|
||||
location,
|
||||
sub_path: sub_path.clone(),
|
||||
})
|
||||
.await
|
||||
.unwrap_or(());
|
||||
library
|
||||
.spawn_job(ShallowFileIdentifierJobInit {
|
||||
location: location_base_data.clone(),
|
||||
sub_path: sub_path.clone(),
|
||||
})
|
||||
.await
|
||||
.unwrap_or(());
|
||||
library
|
||||
.spawn_job(ShallowThumbnailerJobInit {
|
||||
location: location_base_data.clone(),
|
||||
sub_path: sub_path.clone(),
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user