Skip to content

Commit

Permalink
Set tablet device type for 30, 31(detachable) and laptop for 31(conve…
Browse files Browse the repository at this point in the history
…rtible)
  • Loading branch information
sidevesh authored and andyholmes committed Oct 13, 2024
1 parent 0a59c4d commit 3758807
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/service/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export function _getDeviceType() {

type = Number(new TextDecoder().decode(type));

if ([8, 9, 10, 14].includes(type))
if ([30, 32].includes(type))
return 'tablet';

if ([8, 9, 10, 14, 31].includes(type))
return 'laptop';

return 'desktop';
Expand Down Expand Up @@ -691,4 +694,3 @@ export const Transfer = GObject.registerClass({
this._cancellable.cancel();
}
});

0 comments on commit 3758807

Please sign in to comment.