Add auto hide functionality to inline message widget (#1006)#1059
Conversation
src/gui/SettingsWidget.cpp
Outdated
| m_generalUi->autoTypeEntryURLMatchCheckBox->setChecked(config()->get("AutoTypeEntryURLMatch").toBool()); | ||
| m_generalUi->ignoreGroupExpansionCheckBox->setChecked(config()->get("IgnoreGroupExpansion").toBool()); | ||
| m_generalUi->autoHideInternalMessagesCheckBox->setChecked(config()->get("AutoHideInternalMessages", false).toBool()); | ||
| m_generalUi->autoHideInternalMessagesTimeoutSpinBox->setValue( |
There was a problem hiding this comment.
This should be in seconds not milliseconds.
|
@frostasm would it be possible to add the timeout code to our own message widget implementation ( |
|
@louib yes of course. I will make the appropriate changes in the near future. |
phoerious
left a comment
There was a problem hiding this comment.
Is it really necessary to make the timeout configurable? Can't we just have a default timeout? I find it unnecessary to bloat our settings with that.
|
I agree a message timeout setting seems quite excessive. Just make it 5 secs or whatever and stick with it. |
72c60f3 to
eabd830
Compare
|
Changes:
|
|
I still prefer you get rid of the setting. It's quite unnecessary. |
|
Also i am not sure we want to hide all notifications automatically. Is there a simple function to call that disables the timeout for the next show event? Or directly embedded in the show function call (default to true) to toggle autohide? |
@droidmonkey yes. We have two function showMessage. One of them has parameter autoHideTimeout, which is used only for current event. If we want to disable auto-hide functionality we can pass 0 or -1 as timeout. showMessage(text, type, 0);
// or
showMessage(text, type, -1); |
|
ok cool |
@droidmonkey, @louib, @spaetz what do you think about auto-hide option in the settings? |
|
Just remove it. |
|
@phoerious ok |
eabd830 to
0059a8d
Compare
|
Yep agreed, remove it |
0059a8d to
af6517d
Compare
|
I think I'm done. Please test the changes :) |
phoerious
left a comment
There was a problem hiding this comment.
I think you need to add an infinite timeout here:
keepassxc/src/gui/MainWindow.cpp
Line 981 in 42c7256
|
@frostasm Could you rebase to the current develop HEAD please? |
|
@phoerious I need a few minutes |
ef30677 to
f38fe5a
Compare
Add ability to hide inline message widget after a set period of time (#1006)
Description
Done:
Possible improvements:
Motivation and context
fix opened issue #1006
How has this been tested?
Manually
Screenshots (if appropriate):
Types of changes
Checklist:
-DWITH_ASAN=ON. [REQUIRED]