This commit is contained in:
2025-05-08 00:39:41 +08:00
parent 1bc836fafa
commit 24acc2a6f1
17 changed files with 1464 additions and 1388 deletions

View File

@@ -411,7 +411,7 @@ class ModuleReloaderUI(QtWidgets.QDialog):
parent = parent or getMayaMainWindow()
super(ModuleReloaderUI, self).__init__(parent)
self.setWindowTitle("Delos - 模块重载工具")
self.setWindowTitle(f"{TOOL_NAME} - 模块重载工具")
self.setMinimumWidth(600)
self.setMinimumHeight(500)
self.setWindowFlags(self.windowFlags() | QtCore.Qt.WindowStaysOnTopHint)
@@ -427,7 +427,7 @@ class ModuleReloaderUI(QtWidgets.QDialog):
main_layout.setSpacing(10)
# 标题标签
title_label = QtWidgets.QLabel("Delos 模块重载工具")
title_label = QtWidgets.QLabel(f"{TOOL_NAME} 模块重载工具")
title_label.setStyleSheet("font-size: 16px; font-weight: bold;")
main_layout.addWidget(title_label)
@@ -639,7 +639,7 @@ def show_reload_ui():
"""显示模块重载UI"""
try:
# 关闭已有的窗口 - 使用多种方法确保关闭
window_title = "Delos - 模块重载工具"
window_title = f"{TOOL_NAME} - 模块重载工具"
window_closed = False
# 方法1: 使用窗口标题查找