File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ function buildPrefsWidget() {
4949 row_spacing : 8 ,
5050 visible : true ,
5151 column_homogeneous : true ,
52- vexpand : true ,
5352 } ) ;
5453 } else {
5554 widgetPrefs = new Gtk . Grid ( {
@@ -61,7 +60,6 @@ function buildPrefsWidget() {
6160 row_spacing : 8 ,
6261 visible : true ,
6362 column_homogeneous : true ,
64- vexpand : true ,
6563 } ) ;
6664 }
6765
@@ -228,7 +226,7 @@ function buildPrefsWidget() {
228226 } ) ;
229227
230228 let labelSepCharCustom = new Gtk . Label ( {
231- label : "Custom:" ,
229+ label : "Custom (Ex - '<...>') :" ,
232230 halign : Gtk . Align . END ,
233231 visible : true ,
234232 } ) ;
@@ -242,6 +240,7 @@ function buildPrefsWidget() {
242240 halign : Gtk . Align . END ,
243241 buffer : new Gtk . EntryBuffer ( ) ,
244242 placeholder_text : "Ex - '<...>'" ,
243+ max_length : 4 ,
245244 visible : true ,
246245 } ) ;
247246
@@ -472,6 +471,13 @@ function buildPrefsWidget() {
472471 if ( customValues [ 0 ] && customValues [ 1 ] ) {
473472 settings . set_string ( "seperator-char-start" , customValues [ 0 ] ) ;
474473 settings . set_string ( "seperator-char-end" , customValues [ 1 ] ) ;
474+ } else {
475+ let presetValue = sepChars [ comboboxSepCharPresets . get_active ( ) ] ;
476+ settings . set_string ( "seperator-char-start" , presetValue . charAt ( 0 ) ) ;
477+ settings . set_string (
478+ "seperator-char-end" ,
479+ presetValue . charAt ( presetValue . length - 1 )
480+ ) ;
475481 }
476482 } ) ;
477483
You can’t perform that action at this time.
0 commit comments