Skip to content

Commit

Permalink
Fix that switching between outputs doesn't work in Plasma 5.22
Browse files Browse the repository at this point in the history
This change requires Plasma version >= 5.22
  • Loading branch information
Andreas Krutzler committed Jul 24, 2021
1 parent 29d8361 commit ed0d03f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
project(plasma-audio-device-switcher)

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.16)

set(PROJECT_VERSION "5.11.0")
set(PROJECT_VERSION "5.22.0")
set(PROJECT_VERSION_MAJOR 5)

set(KF5_MIN_VERSION "5.30.0")
set(KF5_MIN_VERSION "5.82")

find_package(ECM 1.8.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ ${ECM_MODULE_PATH})

find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma)

Expand Down
6 changes: 3 additions & 3 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ Item {
Layout.fillWidth: true
Layout.preferredWidth: showIconsOnly ? -1 : units.gridUnit * 10

readonly property var sink: PulseObject
readonly property var currentPort: Ports[ActivePortIndex]
readonly property string currentDescription: currentPort ? currentPort.description : Description
readonly property var sink: model.PulseObject
readonly property var currentPort: model.Ports[ActivePortIndex]
readonly property string currentDescription: currentPort ? currentPort.description : model.Description

Binding {
target: tab
Expand Down

0 comments on commit ed0d03f

Please sign in to comment.