Skip to content

Commit e7f1699

Browse files
author
Akos Kitta
committed
fix: reverted unneeded changes
Signed-off-by: Akos Kitta <[email protected]>
1 parent e43bcba commit e7f1699

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Diff for: arduino-ide-extension/src/browser/widgets/cloud-sketchbook/cloud-sketchbook-composite-widget.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export class CloudSketchbookCompositeWidget extends BaseSketchbookCompositeWidge
2323
private readonly cloudSketchbookTreeWidget: CloudSketchbookTreeWidget;
2424
@inject(ApplicationConnectionStatusContribution)
2525
private readonly connectionStatus: ApplicationConnectionStatusContribution;
26+
2627
private _session: AuthenticationSession | undefined;
2728

2829
constructor() {

Diff for: arduino-ide-extension/src/browser/widgets/cloud-sketchbook/cloud-sketchbook-tree-widget.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ export class CloudSketchbookTreeWidget extends SketchbookTreeWidget {
8181
return CompositeTreeNode.is(node) && node.children.length === 0;
8282
}
8383

84-
protected override createNodeClassNames(
85-
node: any,
86-
props: NodeProps
87-
): string[] {
84+
protected override createNodeClassNames(node: any, props: NodeProps): string[] {
8885
const classNames = super.createNodeClassNames(node, props);
8986

9087
if (

Diff for: arduino-ide-extension/src/browser/widgets/cloud-sketchbook/cloud-sketchbook-tree.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export class CloudSketchbookTree extends SketchbookTree {
512512
};
513513
}
514514

515-
protected readonly unpulledOfflineDecoration: WidgetDecoration.Data = {
515+
protected readonly notInSyncOfflineDecoration: WidgetDecoration.Data = {
516516
fontData: {
517517
color: 'var(--theia-activityBar-inactiveForeground)',
518518
},
@@ -578,9 +578,9 @@ export class CloudSketchbookTree extends SketchbookTree {
578578
!CloudSketchbookTree.CloudSketchTreeNode.isSynced(node) &&
579579
this.connectionStatus.offlineStatus === 'internet'
580580
) {
581-
this.mergeDecoration(node, this.unpulledOfflineDecoration);
581+
this.mergeDecoration(node, this.notInSyncOfflineDecoration);
582582
} else {
583-
this.removeDecoration(node, this.unpulledOfflineDecoration);
583+
this.removeDecoration(node, this.notInSyncOfflineDecoration);
584584
}
585585

586586
return node;

0 commit comments

Comments
 (0)