Skip to content

Commit dd15110

Browse files
fix(schedule): allow task scheduling when on battery power (#609)
1 parent b4984af commit dd15110

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

schtasks/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewTask() Task {
5555
},
5656
Settings: Settings{
5757
Compatibility: TaskCompatibilityAT,
58-
DisallowStartIfOnBatteries: true,
58+
DisallowStartIfOnBatteries: false,
5959
IdleSettings: IdleSettings{
6060
Duration: period.NewHMS(0, 10, 0), // PT10M
6161
WaitTimeout: period.NewHMS(1, 0, 0), // PT1H

0 commit comments

Comments
 (0)