how to auto refresh dialog window inputs

i have a Enum input that has different things in it depending on other inputs within the dialog window but it dose not “update” the list or selected option until you mouse over it

Did you get this working? I might be hitting similar issue…

My stuff WAS working yesterday, and now suddenly today, doesn’t want to refresh… I might have a copy of this script/backup from yesterday sometime, so can test that version to see for sure.

But basically, if I add/remove/move items in a UIList, they do not update now, until i Mouse over/ manually expand/control the area.

Showing it like:

return context.window_manager.invoke_props_dialog(self, width=400 )

row = layout.row()
		row.template_list("AUTOBOOL_my_list", "autobool_def_list", scn, "autoboolListObj", scn, "autobool_custom_index", rows=1)

List is setup like:

class AUTOBOOL_my_list(bpy.types.UIList):
	def invoke(self, context, event):
		pass
		
	def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
		obj = context.scene.autoboolListObj[index]
		
		split = layout.split(0.16, align=True)
		left = split.row(align=True)
		right = split.split(0.28,align=True)
		left.prop(obj,'modToggle',"","",False,'RESTRICT_VIEW_OFF')

		left.label("Int: %d" % (index))
		right.prop(obj, "name")
		right.prop(obj,'modOperator')
		right.prop_search(obj, "boolModObject",bpy.context.scene,"objects","","",False,'OBJECT_DATA')

Edit:

Well, I fixed it already, heh :D.

Luckily I had it backed up on Google Drive, and was able to look at that code.
I guess I removed/changed some stuff slightly, and that was breaking the Updating… very very weird.
I’m not even sure how this works/ why it’s needed, but now it updates again!!

NEW Code:

class AUTOBOOL_overlap_dialog(bpy.types.Operator):
	bl_idname = "autobool.overlap_dialog"
	bl_label = "AutoBool Overlap - Dialog"
	#bl_description = "AutoBool Overlap Dialog"
	#bl_options = {'REGISTER','UNDO'}

I NEEDED THIS CODE, TO UPDATE PROPERLY!

class AUTOBOOL_my_list(bpy.types.UIList):

   #NEED THIS TO UPDATE UI IN REALTIME. FOR SOME REASON!
	def invoke(self, context, event):
		pass
		
	def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):