Remove temporary WIP code
This commit is contained in:
parent
b70a9b4e6e
commit
4f89a593a5
2 changed files with 0 additions and 7 deletions
|
|
@ -98,9 +98,6 @@ internal class Application.Controller : Geary.BaseObject {
|
|||
// Track whether storage cleanup is running
|
||||
private bool storage_cleanup_running = false;
|
||||
|
||||
// Whether we're fully in the background
|
||||
public bool all_windows_backgrounded { get; private set; default = false; }
|
||||
|
||||
|
||||
/**
|
||||
* Emitted when an account is added or is enabled.
|
||||
|
|
@ -1789,7 +1786,6 @@ internal class Application.Controller : Geary.BaseObject {
|
|||
private void on_unfocused_idle() {
|
||||
// Schedule later, catching cases where work should occur later while still in background
|
||||
this.all_windows_backgrounded_timeout.reset();
|
||||
this.all_windows_backgrounded = true;
|
||||
window_focus_out();
|
||||
|
||||
if (!storage_cleanup_running)
|
||||
|
|
|
|||
|
|
@ -551,9 +551,6 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.Account {
|
|||
// Continue backgrounded app cleanup work after the first phase,
|
||||
// old message detachment, has completed
|
||||
public void app_backgrounded_cleanup_continued(bool messages_detached, GLib.Cancellable? cancellable) {
|
||||
// TODO bail on remaining work if we've returned from the background
|
||||
// if (!application.controller.all_windows_backgrounded)
|
||||
// return;
|
||||
|
||||
// Kick off GC, allowing vacuum and forcing reap if we've removed messages
|
||||
local.db.run_gc.begin(cancellable, messages_detached, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue