Skip to content

Commit 5051434

Browse files
committed
Remove deprecated Quiet Hours checks and related dependencies
1 parent dd4b8f7 commit 5051434

4 files changed

Lines changed: 4 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
### Changed
1212
- remove flags in Welcome window
1313
- updated many translations
14+
- do not check for Quiet Hours on Windows (deprecated)
1415

1516
### Fixed
1617
- hide close/minimize actions on Break window on macOS

app/utils/dndManager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import EventEmitter from 'events'
22
import log from 'electron-log/main.js'
33
import getFocusAssist from 'windows-focus-assist'
4-
import getIsQuietHours from 'windows-quiet-hours'
54
import dbus from '@particle/dbus-next'
65
import { exec } from 'node:child_process'
76
import { promisify } from 'node:util'
@@ -128,8 +127,7 @@ class DndManager extends EventEmitter {
128127
try {
129128
wfa = getFocusAssist().value
130129
} catch (e) { wfa = -1 } // getFocusAssist() throw an error if OS isn't windows
131-
const wqh = getIsQuietHours()
132-
return wqh || (wfa !== -1 && wfa !== 0)
130+
return wfa !== -1 && wfa !== 0
133131
} else if (process.platform === 'darwin') {
134132
try {
135133
const asyncExec = promisify(exec)

package-lock.json

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"appx"
108108
],
109109
"asarUnpack": [
110-
"node_modules/windows-quiet-hours/**",
111110
"node_modules/windows-notification-state/**",
112111
"node_modules/macos-notification-state/**"
113112
]
@@ -158,7 +157,6 @@
158157
"meeussunmoon": "^3.0.3",
159158
"ps-list": "7.2",
160159
"semver": "^7.6.3",
161-
"windows-focus-assist": "^1.4.0",
162-
"windows-quiet-hours": "github:hovancik/windows-quiet-hours#fix-LPTSTR"
160+
"windows-focus-assist": "^1.4.0"
163161
}
164162
}

0 commit comments

Comments
 (0)