[gnome-builder] plugins/restore-cursor: check availability correctly



commit 22a5c22e387f94595518dc2fea75413e55b76733
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 11 14:20:55 2022 -0700

    plugins/restore-cursor: check availability correctly
    
    # Conflicts:
    #       src/plugins/restore-cursor/gbp-restore-cursor-buffer-addin.c

 src/plugins/restore-cursor/gbp-restore-cursor-buffer-addin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/restore-cursor/gbp-restore-cursor-buffer-addin.c 
b/src/plugins/restore-cursor/gbp-restore-cursor-buffer-addin.c
index 85ca86968..9db5ebdcf 100644
--- a/src/plugins/restore-cursor/gbp-restore-cursor-buffer-addin.c
+++ b/src/plugins/restore-cursor/gbp-restore-cursor-buffer-addin.c
@@ -78,7 +78,7 @@ gbp_restore_cursor_buffer_addin_file_loaded_cb (GObject      *object,
   g_assert (IDE_IS_BUFFER (buffer));
 
   /* Don't do anything if the user already moved */
-  if (_ide_buffer_can_restore_cursor (buffer))
+  if (!_ide_buffer_can_restore_cursor (buffer))
     return;
 
   if (!(file_info = g_file_query_info_finish (file, result, &error)))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]