mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Use the PC name alone as the streaming window title on macOS
This commit is contained in:
parent
4fd902a0d3
commit
e76551cb64
@ -1591,7 +1591,14 @@ void Session::execInternal()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We use only the computer name on macOS to match Apple conventions where the
|
||||||
|
// app name is featured in the menu bar and the document name is in the title bar.
|
||||||
|
#ifdef Q_OS_DARWIN
|
||||||
|
std::string windowName = QString(m_Computer->name).toStdString();
|
||||||
|
#else
|
||||||
std::string windowName = QString(m_Computer->name + " - Moonlight").toStdString();
|
std::string windowName = QString(m_Computer->name + " - Moonlight").toStdString();
|
||||||
|
#endif
|
||||||
|
|
||||||
m_Window = SDL_CreateWindow(windowName.c_str(),
|
m_Window = SDL_CreateWindow(windowName.c_str(),
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user