Increase inputPhraseLengthLimit option's maximum

Those who use GoldenDict to translate long text with Google Translate
or pronounce it with a text-to-speech engine (see a discussion in
comments under #1313) may still want to limit the input phrase length.
But they might prefer a limit greater than the current maximum - ten
thousand symbols. Ten million minus one symbols should be generous
enough. I don't want to increase the maximum further to avoid excessive
widening of spinboxes in the Preferences UI. Besides, a ten megabyte
input phrase freezes GoldenDict's UI with high CPU usage for a minute on
my system.
This commit is contained in:
Igor Kushnir 2020-11-19 14:21:23 +02:00
parent dea11ca080
commit aba8997438

View file

@ -1800,7 +1800,7 @@ from mouse-over, selection, clipboard or command line</string>
<string>Input phrases longer than this size will be ignored</string>
</property>
<property name="maximum">
<number>10000</number>
<number>9999999</number>
</property>
<property name="singleStep">
<number>10</number>