Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
5404caf6
Commit
5404caf6
authored
Feb 27, 2020
by
Ming Rui Zhang
Committed by
Andreas Traczyk
Mar 10, 2020
Browse files
utils: check registry to enable or disable system notification
Change-Id: I355ffa18f4f695faaee92a09a9da29e9e6d2d44c
parent
160106de
Changes
1
Show whitespace changes
Inline
Side-by-side
src/utils.cpp
View file @
5404caf6
...
...
@@ -275,8 +275,11 @@ Utils::setStackWidget(QStackedWidget* stack, QWidget* widget)
void
Utils
::
showSystemNotification
(
QWidget
*
widget
,
const
QString
&
message
,
long
delay
)
{
QSettings
settings
(
"jami.net"
,
"Jami"
);
if
(
settings
.
value
(
SettingsKey
::
enableNotifications
).
toBool
())
{
GlobalSystemTray
::
instance
().
showMessage
(
message
,
""
,
QIcon
(
":images/jami.png"
));
QApplication
::
alert
(
widget
,
delay
);
}
}
void
Utils
::
showSystemNotification
(
QWidget
*
widget
,
...
...
@@ -284,8 +287,11 @@ void Utils::showSystemNotification(QWidget* widget,
const
QString
&
message
,
long
delay
)
{
QSettings
settings
(
"jami.net"
,
"Jami"
);
if
(
settings
.
value
(
SettingsKey
::
enableNotifications
).
toBool
())
{
GlobalSystemTray
::
instance
().
showMessage
(
sender
,
message
,
QIcon
(
":images/jami.png"
));
QApplication
::
alert
(
widget
,
delay
);
}
}
QSize
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment