diff --git a/.github/workflows/deb-build.yml b/.github/workflows/deb-build.yml index 4c2d215..6f5115b 100644 --- a/.github/workflows/deb-build.yml +++ b/.github/workflows/deb-build.yml @@ -93,6 +93,7 @@ jobs: repository: ${{ env.PACKAGECLOUD_REPO }}/${{ env.OS }}/${{ env.DISTRO }} env: PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} + if: github.ref == 'refs/heads/master' # dsc - uses: docker://lpenz/ghaction-packagecloud:v0.3 @@ -101,3 +102,4 @@ jobs: files: ./artifacts/${{ env.ARTIFACT_PREFIX }}.dsc env: PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} + if: github.ref == 'refs/heads/master' diff --git a/src/main.cpp b/src/main.cpp index efdd2a4..f1384c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -156,7 +156,7 @@ int main(int argc, char *argv[]) parser.addOption(kioskModeOption); QCommandLineOption sizeOption(QStringList() << "s" << "size", "Window size relative to screen, expressed as 'x' (e.g. '0.6x0.4'), where each scalar is a decimal number from 0 to 1.", "size", "0.65x0.55"); parser.addOption(sizeOption); - QCommandLineOption titleOption(QStringList() << "t" << "window-title", "Specify a title for the window. This will appear in the title bar.", "title", "web-renderer"); + QCommandLineOption titleOption(QStringList() << "t" << "window-title", "Specify a title for the window. This will appear in the title bar.", "title", ""); parser.addOption(titleOption); QCommandLineOption iconOption(QStringList() << "i" << "icon", "Specify the path to an icon to be set as the application icon. This will appear in the title bar (unless the '--hide-frame' option is selected), and in the application bar.", "path", ""); parser.addOption(iconOption); @@ -267,8 +267,10 @@ int main(int argc, char *argv[]) //////////////// qInfo() << "Configuring view"; - app.setApplicationName(titleArg); - rootObject->setProperty("title", titleArg); + if (titleArg != "") { + app.setApplicationName(titleArg); + rootObject->setProperty("title", titleArg); + } const QSize &screenSize = app.primaryScreen()->size(); if (kioskModeArg)