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