Skip to content

Commit

Permalink
Added hint on dopdown shortcut under Wayland (#1151)
Browse files Browse the repository at this point in the history
* Added hint on dopdown shortcut under Wayland

… to Terminal settings → Dropdown → Shortcut.

* Changed the label text
  • Loading branch information
tsujan authored Jul 17, 2024
1 parent 86965fa commit 9ac8b0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/forms/propertiesdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,16 @@ To remove/disable a Shortcut, at point 2 press only a modifier (like Shift)</str
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="waylandLabel">
<property name="text">
<string>Note: On Wayland, the shortcut has to be added in the compositor settings for 'qterminal -d'.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
Expand Down
2 changes: 2 additions & 0 deletions src/propertiesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ PropertiesDialog::PropertiesDialog(QWidget *parent)
Properties::Instance()->saveSettings();
});

waylandLabel->setVisible(QGuiApplication::platformName() == QStringLiteral("wayland"));

// restore its size while fitting it into available desktop geometry
QSize s;
if (!Properties::Instance()->prefDialogSize.isEmpty())
Expand Down

0 comments on commit 9ac8b0d

Please sign in to comment.