Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-windows
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
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
Options
Browse Files
Download
Email Patches
Plain Diff
utils: check registry to enable or disable system notification
Change-Id: I355ffa18f4f695faaee92a09a9da29e9e6d2d44c
parent
160106de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/utils.cpp
src/utils.cpp
+10
-4
No files found.
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
)
{
GlobalSystemTray
::
instance
().
showMessage
(
message
,
""
,
QIcon
(
":images/jami.png"
));
QApplication
::
alert
(
widget
,
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
)
{
GlobalSystemTray
::
instance
().
showMessage
(
sender
,
message
,
QIcon
(
":images/jami.png"
));
QApplication
::
alert
(
widget
,
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
Markdown
is supported
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