Skip to content

Commit ab6a645

Browse files
authored
Merge pull request #2802 from UltimateHackingKeyboard/feat-index-host-connections-from-1
feat: index host connections from 1
2 parents 071e4f9 + 4868d41 commit ab6a645

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/uhk-web/src/app/components/popover/tab/device/device-tab.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class DeviceTabComponent extends Tab implements OnChanges, OnDestroy, OnI
178178
const name = hostConnection.name || 'unassigned';
179179

180180
return {
181-
name: `${index}: ${name}`,
181+
name: `${index + 1}: ${name}`,
182182
command: ConnectionCommands.switchByHostConnectionId,
183183
connectionId: index,
184184
}

packages/uhk-web/src/app/components/svg/keys/svg-keyboard-key/svg-keyboard-key.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export class SvgKeyboardKeyComponent implements OnChanges, OnDestroy {
537537
text = 'Previous'
538538
}
539539
else {
540-
iconText = this.keyAction.hostConnectionId.toString(10);
540+
iconText = (this.keyAction.hostConnectionId + 1).toString(10);
541541
const hostConnection = this.hostConnections[this.keyAction.hostConnectionId];
542542
text = hostConnection?.name || 'unassigned'
543543
}

0 commit comments

Comments
 (0)