Fixed frame over buttons ons unmanaged setup

This commit is contained in:
Adolfo Gómez García 2022-06-17 22:27:23 +02:00
parent 3a4d571a6c
commit 118e642700
3 changed files with 8 additions and 8 deletions

View File

@ -85,7 +85,7 @@ class UDSConfigDialog(QDialog):
self.ui.testButton.setEnabled(
self.ui.host.text() == self._config.host
and self.ui.serviceToken.text() == self._config.master_token
and self._config.restrict_net == self.ui.restrictNet.text()
and self.ui.restrictNet.text() == self._config.restrict_net
)
def testUDSServer(self) -> None:
@ -162,9 +162,9 @@ if __name__ == "__main__":
app = QApplication(sys.argv)
if udsactor.platform.operations.checkPermissions() is False:
QMessageBox.critical(None, 'UDS Actor', 'This Program must be executed as administrator', QMessageBox.Ok) # type: ignore
sys.exit(1)
#if udsactor.platform.operations.checkPermissions() is False:
# QMessageBox.critical(None, 'UDS Actor', 'This Program must be executed as administrator', QMessageBox.Ok) # type: ignore
# sys.exit(1)
if len(sys.argv) > 2:
if sys.argv[1] == 'export':

View File

@ -10,7 +10,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>591</width>
<width>601</width>
<height>243</height>
</rect>
</property>
@ -144,7 +144,7 @@
<x>10</x>
<y>10</y>
<width>571</width>
<height>228</height>
<height>191</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">

View File

@ -15,7 +15,7 @@ class Ui_UdsActorSetupDialog(object):
def setupUi(self, UdsActorSetupDialog):
UdsActorSetupDialog.setObjectName("UdsActorSetupDialog")
UdsActorSetupDialog.setWindowModality(QtCore.Qt.WindowModal)
UdsActorSetupDialog.resize(591, 243)
UdsActorSetupDialog.resize(601, 243)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@ -54,7 +54,7 @@ class Ui_UdsActorSetupDialog(object):
self.testButton.setMinimumSize(QtCore.QSize(181, 0))
self.testButton.setObjectName("testButton")
self.layoutWidget = QtWidgets.QWidget(UdsActorSetupDialog)
self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 571, 228))
self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 571, 191))
self.layoutWidget.setObjectName("layoutWidget")
self.formLayout = QtWidgets.QFormLayout(self.layoutWidget)
self.formLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)