fix and cleanup
This commit is contained in:
parent
d06982b38a
commit
262714d3ee
3 changed files with 10 additions and 17 deletions
3
setup.py
3
setup.py
|
@ -57,5 +57,4 @@ setup(name='Toxygen',
|
|||
},
|
||||
cmdclass={
|
||||
'install': InstallScript,
|
||||
},
|
||||
)
|
||||
})
|
||||
|
|
|
@ -454,15 +454,6 @@ def clean():
|
|||
remove(d)
|
||||
|
||||
|
||||
def configure():
|
||||
"""Removes unused libs"""
|
||||
d = curr_directory() + '/libs/'
|
||||
if os.path.exists(d + 'libtox.dll'):
|
||||
os.remove(d + 'libtox.dll')
|
||||
if os.path.exists(d + 'libsodium.a'):
|
||||
os.remove(d + 'libsodium.a')
|
||||
|
||||
|
||||
def reset():
|
||||
Settings.reset_auto_profile()
|
||||
|
||||
|
|
|
@ -857,12 +857,15 @@ class VideoSettings(CenteredWidget):
|
|||
self.in_label.setText(QtWidgets.QApplication.translate("videoSettingsForm", "Device:"))
|
||||
|
||||
def closeEvent(self, event):
|
||||
settings = Settings.get_instance()
|
||||
settings.video['device'] = self.devices[self.input.currentIndex()]
|
||||
text = self.video_size.currentText()
|
||||
settings.video['width'] = int(text.split(' ')[0])
|
||||
settings.video['height'] = int(text.split(' ')[-1])
|
||||
settings.save()
|
||||
try:
|
||||
settings = Settings.get_instance()
|
||||
settings.video['device'] = self.devices[self.input.currentIndex()]
|
||||
text = self.video_size.currentText()
|
||||
settings.video['width'] = int(text.split(' ')[0])
|
||||
settings.video['height'] = int(text.split(' ')[-1])
|
||||
settings.save()
|
||||
except Exception as ex:
|
||||
print('Saving video settings error: ' + str(ex))
|
||||
|
||||
def selectionChanged(self):
|
||||
width, height = self.frame_max_sizes[self.input.currentIndex()]
|
||||
|
|
Loading…
Reference in a new issue