Skip to content

Commit

Permalink
Merge pull request #1436 from hovancik/disable-skip
Browse files Browse the repository at this point in the history
Disable skipping to next break from tray when in strict mode
  • Loading branch information
hovancik authored Feb 10, 2024
2 parents df7520d + 0c43d1e commit 7e927d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed
- updated many translations
- disable skipping to next break from tray when in strict mode

### Fixed
- transparency issues on Windows 10
Expand Down
6 changes: 5 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,11 @@ function getTrayMenuTemplate () {
})
}

if (!(breakPlanner.isPaused || breakPlanner.dndManager.isOnDnd || breakPlanner.appExclusionsManager.isSchedulerCleared)) {
if (breakPlanner.scheduler.reference === 'finishMicrobreak' && settings.get('microbreakStrictMode')) {
// nothing
} else if (breakPlanner.scheduler.reference === 'finishBreak' && settings.get('breakStrictMode')) {
// nothing
} else if (!(breakPlanner.isPaused || breakPlanner.dndManager.isOnDnd || breakPlanner.appExclusionsManager.isSchedulerCleared)) {
let submenu = []
if (settings.get('microbreak')) {
submenu = submenu.concat([{
Expand Down

0 comments on commit 7e927d3

Please sign in to comment.