mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
core review changes - formatting
This commit is contained in:
parent
7d8e0644ce
commit
a97a91a7be
|
@ -1924,13 +1924,20 @@ QString Widget::getStatusIconPath(Status status)
|
||||||
|
|
||||||
inline QIcon Widget::getStatusIcon(Status status, uint32_t, uint32_t)
|
inline QIcon Widget::getStatusIcon(Status status, uint32_t, uint32_t)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
|
||||||
QString desktop = getenv("XDG_CURRENT_DESKTOP");
|
QString desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||||
if (desktop.isEmpty())
|
if (desktop.isEmpty())
|
||||||
|
{
|
||||||
desktop = getenv("DESKTOP_SESSION");
|
desktop = getenv("DESKTOP_SESSION");
|
||||||
|
}
|
||||||
desktop = desktop.toLower();
|
desktop = desktop.toLower();
|
||||||
if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate") {
|
|
||||||
if (w > 0 && h > 0) {
|
if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate")
|
||||||
|
{
|
||||||
|
if (w > 0 && h > 0)
|
||||||
|
{
|
||||||
return getStatusIconPixmap(status, w, h);
|
return getStatusIconPixmap(status, w, h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user