#A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2015 NV Access Limited #This file is covered by the GNU General Public License. #See the file COPYING for more details. import appModuleHandler from NVDAObjects.IAccessible import IAccessible, ContentGenericClient class AppModule(appModuleHandler.AppModule): def chooseNVDAObjectOverlayClasses(self,obj,clsList): if isinstance(obj, IAccessible): try: # #5288: Never use ContentGenericClient, as this uses displayModel # which will freeze if the process is suspended. clsList.remove(ContentGenericClient) except ValueError: pass