[geary] Reduce save-draft timeout to 10 seconds
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Reduce save-draft timeout to 10 seconds
- Date: Tue, 11 Nov 2014 21:19:28 +0000 (UTC)
commit 3690068999f85f8d7b1990d6ddec05b0178ecc30
Author: Jim Nelson <jim yorba org>
Date: Tue Nov 11 13:14:20 2014 -0800
Reduce save-draft timeout to 10 seconds
We've become more confident about saving drafts (although issues
remain ensure old ones are deleted as new ones take their place).
I'm dropping the timeout to 10 seconds to reduce network activity
and the number of discarded drafts generated while writing them, which
fills up the users' trash.
src/client/composer/composer-widget.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index de0e5fe..5a6e422 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -112,7 +112,7 @@ public class ComposerWidget : Gtk.EventBox {
</body></html>""";
private const string CURSOR = "<span id=\"cursormarker\"></span>";
- private const int DRAFT_TIMEOUT_MSEC = 2000; // 2 seconds
+ private const int DRAFT_TIMEOUT_SEC = 10;
public const string ATTACHMENT_KEYWORDS_SUFFIX = ".doc|.pdf|.xls|.ppt|.rtf|.pps";
@@ -1912,7 +1912,7 @@ public class ComposerWidget : Gtk.EventBox {
cancel_draft_timer();
if (drafts_folder != null)
- draft_save_timeout_id = Timeout.add(DRAFT_TIMEOUT_MSEC, on_save_draft_timeout);
+ draft_save_timeout_id = Timeout.add_seconds(DRAFT_TIMEOUT_SEC, on_save_draft_timeout);
}
// Cancels the draft save timeout
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]