mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Priority groups are zero indexed
This commit is contained in:
@@ -117,7 +117,7 @@ export default class PowerManagement extends TranslatedComponent {
|
|||||||
return () => {
|
return () => {
|
||||||
const prio = m.getPowerPriority();
|
const prio = m.getPowerPriority();
|
||||||
const newPrio = Math.max(0, prio + delta);
|
const newPrio = Math.max(0, prio + delta);
|
||||||
if (0 < newPrio) {
|
if (0 <= newPrio) {
|
||||||
m.setPowerPriority(newPrio);
|
m.setPowerPriority(newPrio);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user