mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 19:45:35 -04:00
[qrvthtool] Fix the window icon on Wayland.
On Wayland systems, the window icon is obtained from the .desktop file, so we need to call QGuiApplication::setDesktopFileName(). QRvtHToolWindow.cpp: Update the Mac proxy icon comment.
This commit is contained in:
parent
0ac25bfd59
commit
93b8a615fc
@ -85,6 +85,7 @@ int main(int argc, char *argv[])
|
||||
app->setOrganizationDomain(QLatin1String("gerbilsoft.com"));
|
||||
app->setOrganizationName(QLatin1String("GerbilSoft"));
|
||||
app->setApplicationVersion(QLatin1String(VERSION_STRING));
|
||||
app->setDesktopFileName(QLatin1String("qrvthtool.desktop"));
|
||||
|
||||
// Initialize the TranslationManager.
|
||||
TranslationManager *const tsm = TranslationManager::instance();
|
||||
|
@ -519,8 +519,8 @@ QRvtHToolWindow::QRvtHToolWindow(QWidget *parent)
|
||||
this->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
// Remove the window icon. (Mac "proxy icon")
|
||||
// TODO: Use the memory card file?
|
||||
// Mac OS: Remove the window icon initially.
|
||||
// It will be set when a filename is selected.
|
||||
this->setWindowIcon(QIcon());
|
||||
#endif /* Q_OS_MAC */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user