| 391 |
391 |
|
apply(ui.ctx(), state, None, intents.into_inner());
|
| 392 |
392 |
|
}
|
| 393 |
393 |
|
|
| 394 |
|
- |
/// Draw the described sweep, and act on whatever was pressed.
|
|
394 |
+ |
/// Draw the blob sweep, and act on whatever was pressed.
|
| 395 |
395 |
|
///
|
| 396 |
|
- |
/// Its own window rather than a stage of the import flow's, because it is not
|
| 397 |
|
- |
/// one: see `importing`'s header. Refreshed unconditionally for the plainest of
|
| 398 |
|
- |
/// the reasons -- a worker is removing rows and the count moves on its own.
|
| 399 |
|
- |
pub fn draw_sweep(ctx: &egui::Context, state: &mut BrowserState) {
|
|
396 |
+ |
/// Its own address rather than a stage of the import flow, because it is not
|
|
397 |
+ |
/// one: see `importing`'s header. Into the app's own pane all the same, because
|
|
398 |
+ |
/// `ImportMode::Cleaning` is a full-screen mode like every other stage and the
|
|
399 |
+ |
/// shipped `draw_cleanup_progress` took the pane over.
|
|
400 |
+ |
///
|
|
401 |
+ |
/// Refreshed unconditionally for the plainest of the reasons: a worker is
|
|
402 |
+ |
/// removing rows and the count moves on its own.
|
|
403 |
+ |
pub fn draw_sweep(ui: &mut egui::Ui, state: &mut BrowserState) {
|
| 400 |
404 |
|
let intents = RefCell::new(Vec::new());
|
| 401 |
405 |
|
let mut runtime = state.described.sweep.take();
|
| 402 |
406 |
|
let host = Host {
|
| 405 |
409 |
|
themes: themes(),
|
| 406 |
410 |
|
intents: &intents,
|
| 407 |
411 |
|
};
|
| 408 |
|
- |
let closed = window(
|
| 409 |
|
- |
ctx,
|
| 410 |
|
- |
"Cleaning up (described)",
|
| 411 |
|
- |
&mut runtime,
|
| 412 |
|
- |
&host,
|
| 413 |
|
- |
"/cleanup",
|
| 414 |
|
- |
true,
|
| 415 |
|
- |
);
|
|
412 |
+ |
inline(ui, &mut runtime, &host, "/cleanup", true);
|
| 416 |
413 |
|
state.described.sweep = runtime;
|
| 417 |
|
- |
apply(ctx, state, None, intents.into_inner());
|
| 418 |
|
- |
if closed {
|
| 419 |
|
- |
state.described.sweep = None;
|
| 420 |
|
- |
}
|
|
414 |
+ |
apply(ui.ctx(), state, None, intents.into_inner());
|
| 421 |
415 |
|
}
|
| 422 |
416 |
|
|
| 423 |
417 |
|
/// Draw the loose-files warning, and act on whatever was pressed.
|