Update device outputName when setting output
BUG:451279 FIXED-IN:5.25.0
This commit is contained in:
parent
b0b551653f
commit
d3a37aa9ae
1 changed files with 2 additions and 0 deletions
|
@ -666,8 +666,10 @@ void Device::setOutput(Output *output)
|
|||
#ifndef KWIN_BUILD_TESTING
|
||||
m_output = output;
|
||||
if (m_output) {
|
||||
m_outputName = output->name();
|
||||
writeEntry(ConfigKey::OutputName, output->name());
|
||||
} else {
|
||||
m_outputName = QString();
|
||||
writeEntry(ConfigKey::OutputName, QString());
|
||||
}
|
||||
Q_EMIT outputNameChanged();
|
||||
|
|
Loading…
Reference in a new issue