From 9fcfe12644a7aa88d9f43025eb2065252d4d40e6 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Tue, 22 Feb 2022 01:34:24 +0530 Subject: Check for ToS using defined function --- src/maker/Maker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/maker') diff --git a/src/maker/Maker.py b/src/maker/Maker.py index 01095d91..4e71d7fd 100755 --- a/src/maker/Maker.py +++ b/src/maker/Maker.py @@ -371,10 +371,10 @@ Please check if Verilog File Chosen.") self.optionsgrid.addWidget(self.runoptions, 0, 4) # self.optionsbox.setLayout(self.optionsgrid) # self.grid.addWidget(self.creategroup(), 1, 0, 5, 0) - if not os.path.isfile(home + "/.makerchip_accepted"): + if not makerchipTOSAccepted(False): self.acceptTOS = QtWidgets.QPushButton("Accept Makerchip TOS") self.optionsgroupbtn.addButton(self.acceptTOS) - self.acceptTOS.clicked.connect(self.makerchipaccepted) + self.acceptTOS.clicked.connect(lambda: makerchipTOSAccepted(True)) self.optionsgrid.addWidget(self.acceptTOS, 0, 5) # self.optionsbox.setLayout(self.optionsgrid) # self.grid.addWidget(self.creategroup(), 1, 0, 5, 0) -- cgit