Preferences/ConfigurationPages/EditorAutocompletionPage.py

changeset 5906
fef02b3fdc32
parent 5888
f23f3d2b7516
child 5909
21d90a3abc7c
--- a/Preferences/ConfigurationPages/EditorAutocompletionPage.py	Sun Oct 15 19:40:26 2017 +0200
+++ b/Preferences/ConfigurationPages/EditorAutocompletionPage.py	Mon Oct 16 19:10:00 2017 +0200
@@ -15,7 +15,6 @@
 import Preferences
 
 
-# TODO: add spinbox for AutoCompletionCacheSize
 class EditorAutocompletionPage(ConfigurationPageBase,
                                Ui_EditorAutocompletionPage):
     """
@@ -42,6 +41,8 @@
             Preferences.getEditor("AutoCompletionThreshold"))
         self.acTimeoutSpinBox.setValue(
             Preferences.getEditor("AutoCompletionTimeout"))
+        self.acCacheSizeSpinBox.setValue(
+            Preferences.getEditor("AutoCompletionCacheSize"))
         
     def save(self):
         """
@@ -66,6 +67,9 @@
         Preferences.setEditor(
             "AutoCompletionTimeout",
             self.acTimeoutSpinBox.value())
+        Preferences.setEditor(
+            "AutoCompletionCacheSize",
+            self.acCacheSizeSpinBox.value())
     
 
 def create(dlg):

eric ide

mercurial