[gnome-builder] buffers: respect auto-saving mode activation status
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buffers: respect auto-saving mode activation status
- Date: Sun, 9 Dec 2018 19:42:55 +0000 (UTC)
commit 3705128635de3f67c3ca73d72dfe2967b70cd437
Author: Martin Blanchard <tchaik gmx com>
Date: Sun Dec 9 11:57:00 2018 +0000
buffers: respect auto-saving mode activation status
https://gitlab.gnome.org/GNOME/gnome-builder/issues/736
src/libide/buffers/ide-buffer.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libide/buffers/ide-buffer.c b/src/libide/buffers/ide-buffer.c
index 692c128d9..fa7daed6f 100644
--- a/src/libide/buffers/ide-buffer.c
+++ b/src/libide/buffers/ide-buffer.c
@@ -205,6 +205,9 @@ ide_buffer_queue_auto_save (IdeBuffer *self)
dzl_clear_source (&priv->auto_save_handler);
+ if (!priv->auto_save)
+ return;
+
if (gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (self)))
priv->auto_save_handler =
gdk_threads_add_timeout_seconds_full (G_PRIORITY_DEFAULT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]