picker: Properly set title and class (#341)

The class was empty before and the title was MainPicker
This commit is contained in:
Janne Heß 2025-06-16 22:41:47 +02:00 committed by GitHub
parent 3cf35e178b
commit 8844ac1336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -97,6 +97,8 @@ int main(int argc, char* argv[]) {
QSettings* settings = new QSettings("/tmp/hypr/hyprland-share-picker.conf", QSettings::IniFormat);
w.setGeometry(0, 0, settings->value("width").toInt(), settings->value("height").toInt());
QCoreApplication::setApplicationName("org.hyprland.xdg-desktop-portal-hyprland");
// get the tabwidget
const auto TABWIDGET = w.findChild<QTabWidget*>("tabWidget");
const auto ALLOWTOKENBUTTON = w.findChild<QCheckBox*>("checkBox");

View File

@ -29,7 +29,7 @@
</size>
</property>
<property name="windowTitle">
<string>MainPicker</string>
<string>Select what to share</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="sizePolicy">