Esempio n. 1
0
    def save(self):
        threads = self.general.ui.horizontalSlider.sliderPosition()
        chunksize = self.general.ui.lineEdit.text()
        downspeed = self.network.ui.lineEdit_2.text()
        upspeed = self.network.ui.lineEdit_3.text()

        #Saving each property to file :)
        Config.changeProperty('THREADS', threads)
        Config.changeProperty('CHUNK_SIZE', chunksize)
        Config.changeProperty('DOWNLOAD_MAX',downspeed)
        Config.changeProperty('UPLOAD_MAX', upspeed)

        Config.saveContacts(self.general.ui.plainTextEdit.toPlainText())
        self.hide()