def reset(self, window):
        self.__close_preview(window)
        self.__clear_context()
The user cancelled the action - give the focus back to the "calling" view and clear the context
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.reset