Merge branch 'rc-56'

This commit is contained in:
Day Matchullis
2026-03-03 15:21:27 -07:00
2 changed files with 10 additions and 1 deletions

View File

@@ -85,6 +85,10 @@ export default class NativeMenuBuilder {
listenForPluginMenuChanges(): void {
ipcMain.on("add-native-menu-item", (_event, item: NativePluginMenuItem) => {
if (this.pluginMenuItems.some((existing) => existing.id === item.id)) {
log.debug(`Menu item with id ${item.id} already exists.`);
return;
}
this.pluginMenuItems.push({
...item,
click: (_menuItem, win) => {

View File

@@ -1818,7 +1818,8 @@ export default Vue.extend({
this.columnWidths = this.tabulator.getColumns().map((c) => {
return { field: c.getField(), width: c.getWidth()}
})
await this.getTableKeys();
// Removed getTableKeys() call here to fix 5-10 second performance regression
// Keys are now fetched only on initialization and explicit refresh (issue #3775)
resolve({
last_page: 1,
data
@@ -1877,6 +1878,10 @@ export default Vue.extend({
log.debug('refreshing table')
const page = this.tabulator.getPage()
// Re-fetch table keys on explicit refresh to pick up schema changes (issue #3775)
await this.getTableKeys()
await this.tabulator.replaceData()
await this.tabulator.setColumns(this.tableColumns)
this.tabulator.setPage(page)