disable open file button while a long clang-format command is executing