bug fixes
This commit is contained in:
parent
fd80e1f142
commit
0cf459e3a9
@ -88,7 +88,3 @@ class LoginScreen(CenteredWidget):
|
|||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
self.onclose(self.type, self.number, self.load_as_default, self.name)
|
self.onclose(self.type, self.number, self.load_as_default, self.name)
|
||||||
event.accept()
|
event.accept()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
pass
|
|
||||||
|
@ -240,13 +240,14 @@ class NetworkSettings(CenteredWidget):
|
|||||||
changed = old_data != new_data
|
changed = old_data != new_data
|
||||||
if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != unicode(settings['proxy_port'])):
|
if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != unicode(settings['proxy_port'])):
|
||||||
changed = True
|
changed = True
|
||||||
if changed or self.reconn:
|
if changed:
|
||||||
settings['ipv6_enabled'] = self.ipv.isChecked()
|
settings['ipv6_enabled'] = self.ipv.isChecked()
|
||||||
settings['udp_enabled'] = self.udp.isChecked()
|
settings['udp_enabled'] = self.udp.isChecked()
|
||||||
settings['proxy_type'] = 2 - int(self.http.isChecked())
|
settings['proxy_type'] = 2 - int(self.http.isChecked())
|
||||||
settings['proxy_host'] = self.proxyip.text()
|
settings['proxy_host'] = self.proxyip.text()
|
||||||
settings['proxy_port'] = int(self.proxyport.text())
|
settings['proxy_port'] = int(self.proxyport.text())
|
||||||
settings.save()
|
settings.save()
|
||||||
|
if changed or self.reconnect:
|
||||||
# recreate tox instance
|
# recreate tox instance
|
||||||
Profile.get_instance().reset(self.reset)
|
Profile.get_instance().reset(self.reset)
|
||||||
|
|
||||||
|
@ -172,6 +172,10 @@ class ProfileHelper(object):
|
|||||||
path = path.decode(locale.getpreferredencoding())
|
path = path.decode(locale.getpreferredencoding())
|
||||||
ProfileHelper._path = path + name + '.tox'
|
ProfileHelper._path = path + name + '.tox'
|
||||||
ProfileHelper._directory = path
|
ProfileHelper._directory = path
|
||||||
|
# create /avatars if not exists:
|
||||||
|
directory = path + 'avatars'
|
||||||
|
if not os.path.exists(directory):
|
||||||
|
os.makedirs(directory)
|
||||||
with open(ProfileHelper._path, 'rb') as fl:
|
with open(ProfileHelper._path, 'rb') as fl:
|
||||||
data = fl.read()
|
data = fl.read()
|
||||||
if data:
|
if data:
|
||||||
|
@ -634,7 +634,7 @@ QPushButton:disabled
|
|||||||
|
|
||||||
QComboBox
|
QComboBox
|
||||||
{
|
{
|
||||||
selection-background-color: #3d8ec9;
|
selection-background-color: #A9A9A9;
|
||||||
background-color: #201F1F;
|
background-color: #201F1F;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border: 1px solid #3A3939;
|
border: 1px solid #3A3939;
|
||||||
|
Loading…
Reference in New Issue
Block a user