Remove footer component active persistence, so that if a modal or the Extensions window is opened on one computer, it doesn't open on another computer. The inspiration for this was since opening and closing the Ext window no longer syncs the .active state of that window, if the Extensions ext is for whatever reason synced while it was open, setting .active to true, then, it's impossible to reset that flag. So it will perpetually open and nothing cna be done about it.
This commit is contained in:
@@ -129,18 +129,9 @@ angular.module('app')
|
||||
});
|
||||
|
||||
componentManager.registerHandler({identifier: "roomBar", areas: ["rooms", "modal"], activationHandler: (component) => {
|
||||
if(component.active) {
|
||||
// Show room, if it was not activated manually (in the event of event from componentManager)
|
||||
if(component.area == "rooms" && !component.showRoom) {
|
||||
component.showRoom = true;
|
||||
}
|
||||
$timeout(() => {
|
||||
var lastSize = component.getLastSize();
|
||||
if(lastSize) {
|
||||
componentManager.handleSetSizeEvent(component, lastSize);
|
||||
}
|
||||
});
|
||||
}
|
||||
// RIP: There used to be code here that checked if component.active was true, and if so, displayed the component.
|
||||
// However, we no longer want to persist active state for footer extensions. If you open Extensions on one computer,
|
||||
// it shouldn't open on another computer. Active state should only be persisted for persistent extensions, like Folders.
|
||||
}, actionHandler: (component, action, data) => {
|
||||
if(action == "set-size") {
|
||||
component.setLastSize(data);
|
||||
|
||||
Reference in New Issue
Block a user