fix and cleanup

This commit is contained in:
ingvar1995 2017-07-06 21:39:15 +03:00
parent d06982b38a
commit 262714d3ee
3 changed files with 10 additions and 17 deletions

View file

@ -57,5 +57,4 @@ setup(name='Toxygen',
},
cmdclass={
'install': InstallScript,
},
)
})

View file

@ -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()

View file

@ -857,12 +857,15 @@ class VideoSettings(CenteredWidget):
self.in_label.setText(QtWidgets.QApplication.translate("videoSettingsForm", "Device:"))
def closeEvent(self, event):
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()]