mirror of
https://github.com/onionshare/onionshare.git
synced 2025-11-30 02:56:50 -05:00
Adds country flags
This commit is contained in:
parent
9c61c46ea8
commit
23e623f45c
236 changed files with 47 additions and 1 deletions
|
|
@ -577,8 +577,12 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
|||
self.country_combobox.setStyleSheet(
|
||||
common.gui.css["autoconnect_countries_combobox"]
|
||||
)
|
||||
self.country_combobox.setIconSize(QtCore.QSize(26, 26))
|
||||
for country_code in countries:
|
||||
self.country_combobox.addItem(countries[country_code], country_code)
|
||||
icon = QtGui.QIcon(
|
||||
GuiCommon.get_resource_path(os.path.join("images", "countries", f"{country_code}.png"))
|
||||
)
|
||||
self.country_combobox.addItem(icon, countries[country_code], country_code)
|
||||
|
||||
# Task label
|
||||
self.task_label = QtWidgets.QLabel()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue