Closed tsujan closed 2 years ago
Works fine, but at first install on my main PC which I hardly use recently it looked like not working, even normal notifications. Recompiled master, same, but then I noticed the "only save notifications" checked, with tons of previews saved.
So some explanation maybe is needed below the button like
Note:
If "Do not disturb" is active the preview cannot be shown
When changing position during preview it will switch, but only for the default time set, this is actually nice. So maybe make the preview always 15s?
BTW the reset button doesn't reset dimensions.
When changing position during preview it will switch
Yes. The root of the problem isn't solved by it. But, I think, there are two advantages:
So some explanation maybe is needed below the button like... So maybe make the preview always 15s?
I agree with the first one. But let's limit this PR to its main purpose. We could add separate PRs for other changes later.
BTW the reset button doesn't reset dimensions.
Will check it later (but not in this PR).
I might also open an issue about the lack of preview in the no-disturb mode. Adding a tooltip or an explanation is one solution but we may be able to make an exception in this case and really show the notification. Will re-read the code later (not for this PR).
Ok, step by step. An exception would be the cleanest way.
An exception would be the cleanest way.
Yes, but I wouldn't cross my fingers because the config code is completely separate from the daemon code.
If it isn't possible, I'll add a popup message (or a red bar inside the GUI) that will be shown on pressing "Preview" with the do-not-disturb mode. It could say something like, "The do-not-disturb mode is enabled. Notifications are saved." After all, it could serve as a demo for the do-not-disturb mode too.
Anyway, I agree that it's a problem to fix. Thanks for finding it!
Anyway, I agree that it's a problem to fix. Thanks for finding it!
I didn't find it - it happened casually, usually I never use the "save" mode, it was active for saving this globalkeys issue messages...
it happened casually
And you found why it happened.
I think I've found a simple way of making an exception for test notifications in the do-not-disturb mode. Will make a PR.
I see now that repeated clicking "preview" without changing position opens one below (or upon) another, respecting the "Spacing" settings. Not a big issue.
Not a big issue.
There's no issue. It really shows how multiple notifications are shown.
Oh yes. My brain is older than me in the evening.
With it, it's less likely that the preview notification starts at the previous position. With automatic preview, it always started there and then went to the new position (because there's no way to know exactly when the config file is ready).
The preview button can be clicked by pressing
Enter
too.Closes https://github.com/lxqt/lxqt-notificationd/issues/236