View Single Post
Old 06-01-2020, 07:11 PM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,815
Default

This is why PreventUIRefresh() keeps an internal counter. You should always call PreventUIRefresh(1) to initiate and PreventUIRefresh(-1) to end, not the other way around. That will ensure that refresh remains in the prevent state until everyone who called to initiate it has called to end it.
schwa is offline   Reply With Quote