-
Notifications
You must be signed in to change notification settings - Fork 366
Add pause per default option #1487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pause per default option #1487
Conversation
This allows to turn off notification that are not deemed to be importent per default via manipulating the pause level.
It was listed with all the "keyboarr shortcut" options, so I figured that's not where it belongs.
|
I'm not quite sure if/how I should test this. Any suggestion @bynect? |
|
Maybe i would put the pause after the startup notification. Anyway for testing you could copy one of the suite in test/notification and check if the spawned notification are being blocked? Or you could just modify the suite that there is |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1487 +/- ##
==========================================
- Coverage 64.91% 64.90% -0.01%
==========================================
Files 51 51
Lines 9023 9024 +1
Branches 1048 1048
==========================================
Hits 5857 5857
- Misses 3166 3167 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I can do that - no problem.
I looked around in the tests but I couldn't quite find a test that checks anything similar to what I'm doing. In The tests in However, the feature I'm adding is only taking affect if the I don't quite know how I'd do that - if you want I can find out, but I'd argue that this might be a bit overblown given that the new settings only set the pause level. What do you think? |
|
Right. Maybe we should move that line of code somewhere else for testing. Maybe in the settings part. But for now it seems okay to put it there. |
|
@bynect do you still want/expect me to make changes here, or is this good to go? 🙂 |
|
good to go. shortly I'll pull. |
This PR adds a new config option
default_pause_levelthat allows setting a pause level per default.With this new option it's possible to accomplish what I describe in #1484 ("pause"
dusntper default), but in a more general way.Closes #1484