[gnome-builder/wip/gtk4-port: 543/1774] plugins/spellcheck: use !ready instead of loading state




commit 48e8dfa26359223dae5b3fe04c37a3bd3acd5ab1
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 11 15:31:18 2022 -0700

    plugins/spellcheck: use !ready instead of loading state

 src/plugins/spellcheck/editor-text-buffer-spell-adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/spellcheck/editor-text-buffer-spell-adapter.c 
b/src/plugins/spellcheck/editor-text-buffer-spell-adapter.c
index e855ed9fa..61b7433c9 100644
--- a/src/plugins/spellcheck/editor-text-buffer-spell-adapter.c
+++ b/src/plugins/spellcheck/editor-text-buffer-spell-adapter.c
@@ -212,7 +212,7 @@ editor_text_buffer_spell_adapter_update_range (EditorTextBufferSpellAdapter *sel
   g_assert (EDITOR_IS_TEXT_BUFFER_SPELL_ADAPTER (self));
 
   /* Ignore while we are loading or saving */
-  if (ide_buffer_get_loading (IDE_BUFFER (self->buffer)))
+  if (ide_buffer_get_state (IDE_BUFFER (self->buffer)) != IDE_BUFFER_STATE_READY)
     return TRUE;
 
   extra_word_chars = editor_spell_checker_get_extra_word_chars (self->checker);


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