Reduce the number of writes to the config (#2498)
* Add some logging, refactor setting config items * Move active team to setMultiple, reduce serverInfos calls if the data is already the same * Fix some logging * Lint fix
This commit is contained in:
@@ -590,6 +590,7 @@ export class WindowManager {
|
||||
}
|
||||
|
||||
switchServer = (serverName: string, waitForViewToExist = false) => {
|
||||
log.debug('windowManager.switchServer');
|
||||
this.showMainWindow();
|
||||
const server = Config.teams.find((team) => team.name === serverName);
|
||||
if (!server) {
|
||||
@@ -617,6 +618,7 @@ export class WindowManager {
|
||||
}
|
||||
|
||||
switchTab = (serverName: string, tabName: string) => {
|
||||
log.debug('windowManager.switchTab');
|
||||
this.showMainWindow();
|
||||
const tabViewName = getTabViewName(serverName, tabName);
|
||||
this.viewManager?.showByName(tabViewName);
|
||||
|
Reference in New Issue
Block a user