v 0.1.3
This commit is contained in:
parent
c27c35fcc0
commit
02507ab8b4
9 changed files with 37 additions and 6 deletions
|
@ -128,6 +128,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||
self.online_contacts.clear()
|
||||
self.online_contacts.addItem(QtGui.QApplication.translate("MainWindow", "All", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.online_contacts.addItem(QtGui.QApplication.translate("MainWindow", "Online", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.online_contacts.setCurrentIndex(int(Settings.get_instance()['show_online_friends']))
|
||||
|
||||
def setup_right_bottom(self, Form):
|
||||
Form.setObjectName("right_bottom")
|
||||
|
|
|
@ -275,7 +275,7 @@ class NetworkSettings(CenteredWidget):
|
|||
self.proxyport.setText(unicode(settings['proxy_port']))
|
||||
self.http.setChecked(settings['proxy_type'] == 1)
|
||||
self.warning = QtGui.QLabel(self)
|
||||
self.warning.setGeometry(QtCore.QRect(40, 270, 200, 60))
|
||||
self.warning.setGeometry(QtCore.QRect(5, 270, 290, 60))
|
||||
self.warning.setStyleSheet('QLabel { color: #F70D1A; }')
|
||||
self.retranslateUi()
|
||||
self.proxy.stateChanged.connect(lambda x: self.activate())
|
||||
|
|
|
@ -20,6 +20,15 @@ def path_to_data(name):
|
|||
return os.path.dirname(os.path.realpath(__file__)) + '/' + name + '/'
|
||||
|
||||
|
||||
def log(name, data):
|
||||
"""
|
||||
:param name: plugin unique name
|
||||
:param data: data for saving in log
|
||||
"""
|
||||
with open(path_to_data(name) + 'logs.txt', 'a') as fl:
|
||||
fl.write(str(data) + '\n')
|
||||
|
||||
|
||||
class PluginSuperClass(object):
|
||||
"""
|
||||
Superclass for all plugins. Plugin is python module with at least one class derived from PluginSuperClass.
|
||||
|
|
|
@ -881,8 +881,9 @@ class Profile(Contact, Singleton):
|
|||
friend.status = None
|
||||
|
||||
def close(self):
|
||||
self._call.stop()
|
||||
del self._call
|
||||
if hasattr(self, '_stop'):
|
||||
self._call.stop()
|
||||
del self._call
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
# File transfers support
|
||||
|
|
Binary file not shown.
|
@ -66,8 +66,8 @@
|
|||
<source>WARNING:
|
||||
using proxy with enabled UDP
|
||||
can produce IP leak</source>
|
||||
<translation>Предупреждение:
|
||||
использование прокси со включенным UDP
|
||||
<translation type="unfinished">Предупреждение:
|
||||
использование прокси с UDP
|
||||
может привести к утечке IP</translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -3,7 +3,7 @@ import time
|
|||
from platform import system
|
||||
|
||||
|
||||
program_version = '0.1.2'
|
||||
program_version = '0.1.3'
|
||||
|
||||
|
||||
def log(data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue