[PR #399] [MERGED] Power monitor #1158

Closed
opened 2026-01-29 16:57:55 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ElectronNET/Electron.NET/pull/399
Author: @gustavo-lara-molina
Created: 5/12/2020
Status: Merged
Merged: 5/13/2020
Merged by: @GregorBiswanger

Base: masterHead: powerMonitor


📝 Commits (5)

📊 Changes

7 files changed (+165 additions, -1 deletions)

View changed files

📝 ElectronNET.API/Electron.cs (+5 -0)
ElectronNET.API/PowerMonitor.cs (+107 -0)
ElectronNET.Host/api/powerMonitor.js (+17 -0)
ElectronNET.Host/api/powerMonitor.js.map (+1 -0)
ElectronNET.Host/api/powerMonitor.ts (+16 -0)
📝 ElectronNET.Host/main.js (+3 -0)
📝 ElectronNET.WebApp/Controllers/HomeController.cs (+16 -1)

📄 Description

powerMonitor
Monitor power state changes.

Event: 'lock-screen' macOS Windows
Emitted when the system is about to lock the screen.

Event: 'unlock-screen' macOS Windows
Emitted as soon as the systems screen is unlocked.

https://www.electronjs.org/docs/api/power-monitor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ElectronNET/Electron.NET/pull/399 **Author:** [@gustavo-lara-molina](https://github.com/gustavo-lara-molina) **Created:** 5/12/2020 **Status:** ✅ Merged **Merged:** 5/13/2020 **Merged by:** [@GregorBiswanger](https://github.com/GregorBiswanger) **Base:** `master` ← **Head:** `powerMonitor` --- ### 📝 Commits (5) - [`df02855`](https://github.com/ElectronNET/Electron.NET/commit/df0285547133b0f85e161ee4ec8472e7d65131ef) Added the API Power - [`c12c26b`](https://github.com/ElectronNET/Electron.NET/commit/c12c26b491aef68a6a30ba4a17232ba65e894b8f) Merge branch 'master' of https://github.com/ElectronNET/Electron.NET - [`13fcedc`](https://github.com/ElectronNET/Electron.NET/commit/13fcedc3a02aea1ea85682105855c2595d0b6c73) Updating Labesl - [`96a5189`](https://github.com/ElectronNET/Electron.NET/commit/96a5189f143d7fd19f6d114000b6c6268735d8b9) Merge - from master - [`c8e51ef`](https://github.com/ElectronNET/Electron.NET/commit/c8e51ef21bf7ab7f6fd0088d29e6d9b953561fde) Updating Comments ### 📊 Changes **7 files changed** (+165 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ElectronNET.API/Electron.cs` (+5 -0) ➕ `ElectronNET.API/PowerMonitor.cs` (+107 -0) ➕ `ElectronNET.Host/api/powerMonitor.js` (+17 -0) ➕ `ElectronNET.Host/api/powerMonitor.js.map` (+1 -0) ➕ `ElectronNET.Host/api/powerMonitor.ts` (+16 -0) 📝 `ElectronNET.Host/main.js` (+3 -0) 📝 `ElectronNET.WebApp/Controllers/HomeController.cs` (+16 -1) </details> ### 📄 Description powerMonitor Monitor power state changes. Event: 'lock-screen' macOS Windows Emitted when the system is about to lock the screen. Event: 'unlock-screen' macOS Windows Emitted as soon as the systems screen is unlocked. https://www.electronjs.org/docs/api/power-monitor --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:57:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1158