diff --git a/src/ui/app.py b/src/ui/app.py index ff55ba9..2ad74ac 100644 --- a/src/ui/app.py +++ b/src/ui/app.py @@ -99,7 +99,7 @@ class Application(QMainWindow): def load_config(self): config = configparser.ConfigParser() - config_file = 'src/config.ini' + config_file = 'config.ini' if not os.path.exists(config_file): QMessageBox.warning(None, "警告", "用户信息获取失败!") @@ -137,7 +137,7 @@ class Application(QMainWindow): self.thread_pool.start(report_task) def apply_stylesheet(self): - style_sheet = self.load_stylesheet(resource_path('src/ui/style.qss')) + style_sheet = self.load_stylesheet(resource_path('ui/style.qss')) self.setStyleSheet(style_sheet) def refresh_user_data(self): @@ -343,7 +343,7 @@ class Application(QMainWindow): def handle_data_change(self, table, cell_data, col, account_username, notifications): if table.rowCount() > 1 and col != 0: - old_data_str = table.item(1, col).text() + old_data_str = table.item(table.rowCount()-1, col).text() old_data = convert_data(old_data_str) new_data = convert_data(cell_data)