修复了主菜单中样本ID显示错误的问题

禁用了根目录路径的手动输入
This commit is contained in:
2025-06-03 22:31:15 +08:00
parent b84c9915c0
commit 454d068626
3 changed files with 8 additions and 1 deletions

View File

@ -277,9 +277,11 @@ class MainWindow(QMainWindow, Ui_Signal_Label):
def seek_sampID(self, path):
if not Path(path).exists():
PublicFunc.msgbox_output(self, Constants.MAINWINDOW_ROOT_PATH_NOT_EXIST, Constants.MSGBOX_TYPE_ERROR)
self.ui.comboBox_sampID.clear()
return
sub_folders = [item.name for item in Path(path).iterdir() if item.is_dir()]
self.ui.comboBox_sampID.clear()
self.ui.comboBox_sampID.addItems(sub_folders)
def check_root_path(self):