From 24c8b18f7ed2636b2c479329dfac31fb833032a4 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Wed, 30 Aug 2017 22:20:31 +0300 Subject: [PATCH] minor fixes --- toxygen/main.py | 2 +- toxygen/menu.py | 2 +- toxygen/plugin_support.py | 11 +++++++---- toxygen/util.py | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/toxygen/main.py b/toxygen/main.py index 24ac0b6..c3a2e40 100644 --- a/toxygen/main.py +++ b/toxygen/main.py @@ -6,7 +6,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets from bootstrap import node_generator from mainscreen import MainWindow from callbacks import init_callbacks, stop, start -from util import curr_directory, program_version, remove, is_64_bit +from util import curr_directory, program_version, remove import styles.style import platform import toxes diff --git a/toxygen/menu.py b/toxygen/menu.py index 37f7bb6..0d640f4 100644 --- a/toxygen/menu.py +++ b/toxygen/menu.py @@ -611,7 +611,7 @@ class InterfaceSettings(CenteredWidget): self.messages_font_size_label.setFont(font) self.messages_font_size = QtWidgets.QComboBox(self) self.messages_font_size.setGeometry(QtCore.QRect(30, 330, 160, 30)) - self.messages_font_size.addItems([str(x) for x in range(10, 19)]) + self.messages_font_size.addItems([str(x) for x in range(10, 25)]) self.messages_font_size.setCurrentIndex(settings['message_font_size'] - 10) self.unread = QtWidgets.QPushButton(self) diff --git a/toxygen/plugin_support.py b/toxygen/plugin_support.py index a7949f0..0ff7421 100644 --- a/toxygen/plugin_support.py +++ b/toxygen/plugin_support.py @@ -97,10 +97,13 @@ class PluginLoader(util.Singleton): """ result = [] for data in self._plugins.values(): - result.append([data[0].get_name(), # plugin full name - data[1], # is enabled - data[0].get_description(), # plugin description - data[0].get_short_name()]) # key - short unique name + try: + result.append([data[0].get_name(), # plugin full name + data[1], # is enabled + data[0].get_description(), # plugin description + data[0].get_short_name()]) # key - short unique name + except: + continue return result def plugin_window(self, key): diff --git a/toxygen/util.py b/toxygen/util.py index c237501..e8d702a 100644 --- a/toxygen/util.py +++ b/toxygen/util.py @@ -5,7 +5,7 @@ import sys import re -program_version = '0.4.0' +program_version = '0.4.1' def cached(func):