[geary: 53/66] Remove unnecessary var in Application.Controller
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 53/66] Remove unnecessary var in Application.Controller
- Date: Tue, 30 Jun 2020 07:12:06 +0000 (UTC)
commit cfd88f7f177a266a4ec633143bab79cc83423ada
Author: Chris Heywood <15127-creywood users noreply gitlab gnome org>
Date: Thu May 7 19:59:16 2020 +1000
Remove unnecessary var in Application.Controller
src/client/application/application-controller.vala | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/client/application/application-controller.vala
b/src/client/application/application-controller.vala
index dc9aa23f8..6919328af 100644
--- a/src/client/application/application-controller.vala
+++ b/src/client/application/application-controller.vala
@@ -95,9 +95,6 @@ internal class Application.Controller : Geary.BaseObject {
// Timeout to do work in idle after all windows have been sent to the background
private Geary.TimeoutManager all_windows_backgrounded_timeout;
- // Track whether storage cleanup is running
- private bool storage_cleanup_running = false;
-
private GLib.Cancellable? storage_cleanup_cancellable;
@@ -1713,13 +1710,12 @@ internal class Application.Controller : Geary.BaseObject {
this.all_windows_backgrounded_timeout.reset();
window_focus_out();
- if (!storage_cleanup_running)
+ if (this.storage_cleanup_cancellable == null)
do_background_storage_cleanup.begin();
}
private async void do_background_storage_cleanup() {
debug("Checking for backgrounded idle work");
- storage_cleanup_running = true;
this.storage_cleanup_cancellable = new GLib.Cancellable();
foreach (AccountContext context in this.accounts.values) {
@@ -1730,7 +1726,7 @@ internal class Application.Controller : Geary.BaseObject {
break;
context.cancellable.cancelled.disconnect(this.storage_cleanup_cancellable.cancel);
}
- storage_cleanup_running = false;
+ this.storage_cleanup_cancellable = null;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]