@@ -459,27 +459,25 @@ def __init__(self, parent, config):
459459 self .window .set_title (_ ("Plugin Settings" ))
460460 for setting in config .get ("settings" ):
461461 if setting ["type" ].upper () == "INT" :
462- box_settings .append (
463- self .__load_int_item (
464- setting ["label" ],
465- setting ["id" ],
466- config ["active_plugin_config" ],
467- setting .get ("min" , 0 ),
468- setting .get ("max" , 120 ),
469- )
462+ box = self .__load_int_item (
463+ setting ["label" ],
464+ setting ["id" ],
465+ config ["active_plugin_config" ],
466+ setting .get ("min" , 0 ),
467+ setting .get ("max" , 120 ),
470468 )
471469 elif setting ["type" ].upper () == "TEXT" :
472- box_settings .append (
473- self .__load_text_item (
474- setting ["label" ], setting ["id" ], config ["active_plugin_config" ]
475- )
470+ box = self .__load_text_item (
471+ setting ["label" ], setting ["id" ], config ["active_plugin_config" ]
476472 )
477473 elif setting ["type" ].upper () == "BOOL" :
478- box_settings .append (
479- self .__load_bool_item (
480- setting ["label" ], setting ["id" ], config ["active_plugin_config" ]
481- )
474+ box = self .__load_bool_item (
475+ setting ["label" ], setting ["id" ], config ["active_plugin_config" ]
482476 )
477+ else :
478+ continue
479+
480+ box_settings .append (box )
483481
484482 self .window .connect ("close-request" , self .on_window_delete )
485483
0 commit comments