Skip to content

Commit

Permalink
add 2 more modes
Browse files Browse the repository at this point in the history
  • Loading branch information
biji committed Nov 14, 2022
1 parent 779cf0c commit a700676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function init() {

function changeMode() {
mode++;
if (mode > 5) {
if (mode > 7) {
mode = 0;
}
settings.set_int('mode', mode);
Expand Down Expand Up @@ -85,19 +85,19 @@ function parseStat(forceDot = false) {
let dot = " ";
if (speed > lastSpeed || forceDot || speed > ledThreshold) {
if (speed > ledMinThreshold) {
if (mode == 0 || mode == 2 || mode == 4) {
if (mode == 0 || mode == 2 || mode == 4 || mode == 6 ) {
dot = "●";
} else if (mode == 1 || mode == 3) {
} else if (mode == 1 || mode == 3 || mode == 7 ) {
dot = "⬤";
}
}
}
if (mode == 2 || mode == 3) {
if (mode == 2 || mode == 3 || mode == 6 || mode == 7) {
ioSpeed.hide();
} else {
ioSpeed.show();
}
if (mode == 4 || mode == 5) {
if (mode == 4 || mode == 5 || mode == 6 || mode == 7) {
ioSpeedStaticIcon.hide();
} else {
ioSpeedStaticIcon.show();
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
],
"url": "https://github.com/biji/harddiskled",
"uuid": "[email protected]",
"version": 32
"version": 33
}

0 comments on commit a700676

Please sign in to comment.