Skip to content

Commit 3910ad0

Browse files
committed
Fix device Id
1 parent a3d26b6 commit 3910ad0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ogi",
33
"private": true,
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"scripts": {
66
"dev": "next dev -p 1420",
77
"build": "next build && next export -o dist",

src-tauri/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ fn get_all_devices() -> Vec<Device> {
150150
let name = device_row
151151
.get(dot_index.unwrap() + 3..)
152152
.unwrap()
153+
.trim()
153154
.to_string();
154155

155156
let mut resolutions: Vec<Resolution> = Vec::new();
156157
for i in 0..5 {
157-
let dev_res_value = get_resolution(&name.to_string(), &i.to_string());
158+
let dev_res_value = get_resolution(&id.to_string(), &i.to_string());
158159
resolutions.push(Resolution {
159160
value: dev_res_value,
160161
index: i,
@@ -198,6 +199,7 @@ fn main() {
198199
let res_item_right = res_item
199200
.get(dot_index.unwrap() + 2..)
200201
.unwrap()
202+
.trim()
201203
.to_string()
202204
.replace(" (active)", "");
203205
let res_item_right_id = f.index.to_string() + "_" + i.id.as_str();

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "ogi",
11-
"version": "0.0.1"
11+
"version": "0.0.2"
1212
},
1313
"tauri": {
1414
"allowlist": {

0 commit comments

Comments
 (0)