mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-30 10:27:17 +00:00
Compare commits
2 Commits
88f70c0ea6
...
eecb128865
Author | SHA1 | Date | |
---|---|---|---|
eecb128865 | |||
0565d3533f |
@ -16,7 +16,7 @@ set(PROJECT_CONTACT "esalexeev@gmail.com")
|
|||||||
set(PROJECT_LICENSE "GPL3")
|
set(PROJECT_LICENSE "GPL3")
|
||||||
set(PROJECT_VERSION_MAJOR "3")
|
set(PROJECT_VERSION_MAJOR "3")
|
||||||
set(PROJECT_VERSION_MINOR "5")
|
set(PROJECT_VERSION_MINOR "5")
|
||||||
set(PROJECT_VERSION_PATCH "0")
|
set(PROJECT_VERSION_PATCH "1")
|
||||||
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
|
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
|
||||||
# append git version if any
|
# append git version if any
|
||||||
set(PROJECT_COMMIT_SHA "Commit hash" CACHE INTERNAL "")
|
set(PROJECT_COMMIT_SHA "Commit hash" CACHE INTERNAL "")
|
||||||
|
@ -19,7 +19,7 @@ X-Plasma-MainScript=ui/main.qml
|
|||||||
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||||
X-KDE-PluginInfo-Name=org.kde.plasma.awesomewidget
|
X-KDE-PluginInfo-Name=org.kde.plasma.awesomewidget
|
||||||
X-KDE-PluginInfo-Version=3.5.0
|
X-KDE-PluginInfo-Version=3.5.1
|
||||||
X-KDE-PluginInfo-Website=https://arcanis.me/projects/awesome-widgets/
|
X-KDE-PluginInfo-Website=https://arcanis.me/projects/awesome-widgets/
|
||||||
X-KDE-PluginInfo-Category=System Information
|
X-KDE-PluginInfo-Category=System Information
|
||||||
X-KDE-PluginInfo-License=GPLv3
|
X-KDE-PluginInfo-License=GPLv3
|
||||||
|
@ -19,7 +19,7 @@ X-Plasma-MainScript=ui/main.qml
|
|||||||
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||||
X-KDE-PluginInfo-Name=org.kde.plasma.desktoppanel
|
X-KDE-PluginInfo-Name=org.kde.plasma.desktoppanel
|
||||||
X-KDE-PluginInfo-Version=3.5.0
|
X-KDE-PluginInfo-Version=3.5.1
|
||||||
X-KDE-PluginInfo-Website=https://arcanis.me/projects/awesome-widgets/
|
X-KDE-PluginInfo-Website=https://arcanis.me/projects/awesome-widgets/
|
||||||
X-KDE-PluginInfo-Category=System Information
|
X-KDE-PluginInfo-Category=System Information
|
||||||
X-KDE-PluginInfo-License=GPLv3
|
X-KDE-PluginInfo-License=GPLv3
|
||||||
|
@ -46,13 +46,14 @@ QVariant DesktopSource::data(const QString &_source)
|
|||||||
{
|
{
|
||||||
qCDebug(LOG_ESS) << "Source" << _source;
|
qCDebug(LOG_ESS) << "Source" << _source;
|
||||||
|
|
||||||
auto increment = KWindowSystem::isPlatformX11() ? 0 : 1;
|
auto nativeIndex = m_vdi->position(m_vdi->currentDesktop());
|
||||||
auto current = m_vdi->position(m_vdi->currentDesktop()) + increment;
|
auto decrement = KWindowSystem::isPlatformX11() ? 1 : 0;
|
||||||
|
auto current = nativeIndex - decrement;
|
||||||
|
|
||||||
if (_source == "desktop/current/name") {
|
if (_source == "desktop/current/name") {
|
||||||
return m_vdi->desktopNames().at(current);
|
return m_vdi->desktopNames().at(current);
|
||||||
} else if (_source == "desktop/current/number") {
|
} else if (_source == "desktop/current/number") {
|
||||||
return current;
|
return current + 1;
|
||||||
} else if (_source == "desktop/total/name") {
|
} else if (_source == "desktop/total/name") {
|
||||||
return m_vdi->desktopNames();
|
return m_vdi->desktopNames();
|
||||||
} else if (_source == "desktop/total/number") {
|
} else if (_source == "desktop/total/number") {
|
||||||
|
Loading…
Reference in New Issue
Block a user