Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lively.ide/js/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1257,8 +1257,9 @@ export class BrowserModel extends ViewModel {

if (m) {
if (this.alreadySelectedModule(m.url)) return;
this.state.selectedModule = { url: m.url };

await columnView.selectNode(m, animated);
this.state.selectedModule = { url: m.url };
columnView.submorphs.forEach(list => {
list.scrollSelectionIntoView();
});
Expand All @@ -1278,7 +1279,7 @@ export class BrowserModel extends ViewModel {
}

if (url) {
if (this.alreadySelectedModule(m.url)) return;
if (this.alreadySelectedModule(url)) return;
this.state.selectedModule = { url };
const td = columnView.treeData;
await columnView.setExpandedPath(node => {
Expand Down Expand Up @@ -1377,7 +1378,8 @@ export class BrowserModel extends ViewModel {
async onModuleSelected (m, cleanupComponents = true) {
const pack = this.selectedPackage;

if (this._return) return;
if (this._return || this.alreadySelectedModule(m.url)) return;

let proceed = true;
if (this.selectedModule && this.hasUnsavedChanges()) {
proceed = await this.warnForUnsavedChanges();
Expand Down
3 changes: 1 addition & 2 deletions lively.ide/studio/component-browser.cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1693,8 +1693,7 @@ const ComponentBrowser = component({
textAndAttributes: ['', {
fontColor: Color.rgb(74, 174, 79),
fontFamily: 'Font Awesome',
fontWeight: '900',
lineHeight: 1
fontWeight: '900'
}, ' Open', {
fontFamily: 'IBM Plex Sans'
}]
Expand Down