def do_prefs(self):
        if self.prefs.exec_() == QtGui.QDialog.Accepted:
            self.__conn = self.__connect_to_shotgun()
            self.__link_for_file('', warn=True)
        if not self.__conn:
            self.gui.buttons.button(QtGui.QDialogButtonBox.Ok).setEnabled(False)
        else:
            self.gui.buttons.button(QtGui.QDialogButtonBox.Ok).setEnabled(True)
sensorsReadOrientation()
dataset/ETHPy150Open shotgunsoftware/pyqt-uploader/uploader.py/Uploader.do_prefs--crossover with--dataset/ETHPy150Open brousch/sl4a_pydroid_mock_api/src/android/utils/androidhelper_r6.py/Android.sensorsReadOrientation