ngc bug fixes
This commit is contained in:
parent
1a0bd9deee
commit
318c9c942d
5 changed files with 12 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/toxygen-project/toxygen.git --branch=next_gen
|
||||
cd toxygen/toxygen
|
||||
|
||||
|
|
|
@ -123,10 +123,14 @@ class App:
|
|||
if self._settings['theme'] == 'dark':
|
||||
return
|
||||
for theme in self._settings.built_in_themes().keys():
|
||||
if self._settings['theme'] == theme:
|
||||
with open(util.curr_directory(__file__) + self._settings.built_in_themes()[theme]) as fl:
|
||||
style = fl.read()
|
||||
self._app.setStyleSheet(style)
|
||||
if self._settings['theme'] != theme:
|
||||
continue
|
||||
theme_path = self._settings.built_in_themes()[theme]
|
||||
file_path = util.join_path(util.get_styles_directory(), theme_path)
|
||||
with open(file_path) as fl:
|
||||
style = fl.read()
|
||||
self._app.setStyleSheet(style)
|
||||
break
|
||||
|
||||
def _load_login_screen_translations(self):
|
||||
current_language, supported_languages = self._get_languages()
|
||||
|
|
|
@ -68,7 +68,7 @@ class History:
|
|||
messages.reverse()
|
||||
messages = messages[self._messages.count():self._messages.count() + PAGE_SIZE]
|
||||
for message in messages:
|
||||
if message.get_type() in (MESSAGE_TYPE['NORMAL'], MESSAGE_TYPE['ACTION']): # text message
|
||||
if message.get_type() in (MESSAGE_TYPE['TEXT'], MESSAGE_TYPE['ACTION']): # text message
|
||||
self._create_message_item(message)
|
||||
elif message.get_type() == MESSAGE_TYPE['FILE_TRANSFER']: # file transfer
|
||||
if message.get_status() is None:
|
||||
|
|
|
@ -105,6 +105,6 @@ class PeerScreen(CenteredWidget):
|
|||
def _get_ban_type(self):
|
||||
if self.ipBanRadioButton.isChecked():
|
||||
return consts.TOX_GROUP_BAN_TYPE['IP_PORT']
|
||||
elif self.nickRadioButton.isCHecked():
|
||||
elif self.nickBanRadioButton.isChecked():
|
||||
return consts.TOX_GROUP_BAN_TYPE['NICK']
|
||||
return consts.TOX_GROUP_BAN_TYPE['PUBLIC_KEY']
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="nickRadioButton">
|
||||
<widget class="QRadioButton" name="nickBanRadioButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>40</x>
|
||||
|
|
Loading…
Reference in a new issue