@@ -826,6 +826,7 @@ def __init__(self, prefsGui):
826826 super ().__init__ (parent = prefsGui )
827827
828828 self .mainConf = novelwriter .CONFIG
829+ self .prefsGui = prefsGui
829830 self .mainGui = prefsGui .mainGui
830831 self .mainTheme = prefsGui .mainGui .mainTheme
831832
@@ -893,16 +894,21 @@ def __init__(self, prefsGui):
893894 def saveValues (self ):
894895 """Save the values set for this tab.
895896 """
896- # Quotes & Dialogue
897- self .mainConf .highlightQuotes = self .highlightQuotes .isChecked ()
898- self .mainConf .allowOpenSQuote = self .allowOpenSQuote .isChecked ()
899- self .mainConf .allowOpenDQuote = self .allowOpenDQuote .isChecked ()
900-
901- # Text Emphasis
902- self .mainConf .highlightEmph = self .highlightEmph .isChecked ()
903-
904- # Text Errors
905- self .mainConf .showMultiSpaces = self .showMultiSpaces .isChecked ()
897+ highlightQuotes = self .highlightQuotes .isChecked ()
898+ allowOpenSQuote = self .allowOpenSQuote .isChecked ()
899+ allowOpenDQuote = self .allowOpenDQuote .isChecked ()
900+ highlightEmph = self .highlightEmph .isChecked ()
901+ showMultiSpaces = self .showMultiSpaces .isChecked ()
902+
903+ self .prefsGui ._updateSyntax |= self .mainConf .highlightQuotes != highlightQuotes
904+ self .prefsGui ._updateSyntax |= self .mainConf .highlightEmph != highlightEmph
905+ self .prefsGui ._updateSyntax |= self .mainConf .showMultiSpaces != showMultiSpaces
906+
907+ self .mainConf .highlightQuotes = highlightQuotes
908+ self .mainConf .allowOpenSQuote = allowOpenSQuote
909+ self .mainConf .allowOpenDQuote = allowOpenDQuote
910+ self .mainConf .highlightEmph = highlightEmph
911+ self .mainConf .showMultiSpaces = showMultiSpaces
906912
907913 return
908914
0 commit comments