mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
Merge branch 'rc-56'
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user