Compare commits

...

2 Commits

Author SHA1 Message Date
Sergey Palcheh
eca1905c62 added a default icon for files.exe without an icon 2025-12-04 12:49:03 +06:00
Sergey Palcheh
371b2b7484 the prefix name was added to the list immediately after it was restored 2025-12-04 09:55:38 +06:00
3 changed files with 3 additions and 2 deletions

BIN
image/wh_default.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -610,7 +610,7 @@ create_desktop () {
print_ok "Иконка успешно извлечена и сохранена: $icon_file"
else
print_warning "Не удалось извлечь иконку из $exe_file. Используется иконка по умолчанию."
icon_file="wine" # Запасной вариант
icon_file="$WH_IMAGE_PATH/wh_default.png" # Запасной вариант
fi
try_remove_dir "$tmp_ico_dir"
fi
@@ -620,7 +620,7 @@ create_desktop () {
# Случай 4: Запасной вариант по умолчанию
else
print_info "Иконка '$icon_arg' не найдена. Используется иконка по умолчанию."
icon_file="wine"
icon_file="$WH_IMAGE_PATH/wh_default.png"
fi
# --- Конец логики обработки иконки ---

View File

@@ -5117,6 +5117,7 @@ class WineHelperGUI(QMainWindow):
if exit_code == 0:
self.command_log_output.append(f"\n=== Восстановление успешно завершено ===")
self.update_installed_apps()
self._load_created_prefixes()
self.filter_installed_buttons()
else:
self.command_log_output.append(f"\n=== Ошибка выполнения (код: {exit_code}) ===")