Compare commits

..

2 Commits

Author SHA1 Message Date
Sergey Palcheh
e3adf19624 fixed the display of icons for t-flex* in the manual installation tab 2025-12-04 14:03:33 +06:00
Sergey Palcheh
dc7a996060 added ICONS_BUTTON_GUI variable for GUI 2025-12-04 13:59:54 +06:00
3 changed files with 14 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
# info_ru: Ручная установка дополнений для T-FLEX CAD 17 или 18
########################################################################
export PROG_NAME="T-FLEX CAD 17/18"
export PROG_ICON="tflexcad"
export ICONS_BUTTON_GUI="tflexcad17 tflexcad18"
export WH_WINE_USE="wine-10.18.1-tflex-alt2-wow64"
export BASE_PFX="tflex_pfx_x64_v03"
export WINEARCH="win64"

View File

@@ -2,7 +2,7 @@
# info_ru: Ручная установка дополнений для T-FLEX DOCS 17 или 18
########################################################################
export PROG_NAME="T-FLEX DOCS 17/18"
export PROG_ICON="tflexcad"
export PROG_ICON="tflexdoc17"
export WH_WINE_USE="wine-10.18.1-tflex-alt2-wow64"
export BASE_PFX="tflex_pfx_x64_v03"
export WINEARCH="win64"

View File

@@ -1034,14 +1034,21 @@ class ScriptParser:
with open(script_path, 'r', encoding='utf-8') as f:
lines = f.readlines()
# 1. Приоритет у PROG_ICON
# 1. Приоритет у переменной ICONS_BUTTON_GUI для GUI
for line in lines:
if line.strip().startswith('export ICONS_BUTTON_GUI='):
icon_names_str = line.split('=', 1)[1].strip().strip('"\'')
if icon_names_str:
return icon_names_str.split()
# 2. Если ICONS_BUTTON_GUI не найдена, ищем PROG_ICON (для обратной совместимости)
for line in lines:
if line.strip().startswith('export PROG_ICON='):
icon_name = line.split('=', 1)[1].strip().strip('"\'')
if icon_name:
return [icon_name]
icon_names_str = line.split('=', 1)[1].strip().strip('"\'')
if icon_names_str:
return icon_names_str.split()
# 2. Если PROG_ICON не найден, ищем все вызовы create_desktop
# 3. Если ничего не найдено, ищем все вызовы create_desktop
icon_names = []
for line in lines:
line = line.strip()