fix some popups (#927)

This commit is contained in:
Logan McNaughton
2026-05-20 12:43:24 +02:00
committed by GitHub
parent 48956dc016
commit 7eb090a622
2 changed files with 26 additions and 9 deletions
+14
View File
@@ -13,8 +13,13 @@ export component InputProfileDialog inherits Window {
in-out property profile_name <=> InputProfileData.profile_name;
in-out property deadzone <=> InputProfileData.deadzone;
VerticalBox {
alignment: start;
HorizontalBox {
alignment: center;
vertical-stretch: 0;
LineEdit {
vertical-stretch: 0;
placeholder-text: @tr("Enter profile name to create or modify");
preferred-width: 400px;
edited(text) => {
@@ -24,6 +29,7 @@ export component InputProfileDialog inherits Window {
}
HorizontalBox {
vertical-stretch: 0;
alignment: center;
Text {
text: @tr("Deadzone Percentage");
@@ -46,6 +52,7 @@ export component InputProfileDialog inherits Window {
}
HorizontalBox {
vertical-stretch: 0;
alignment: center;
Switch {
text: @tr("Use DirectInput");
@@ -57,7 +64,10 @@ export component InputProfileDialog inherits Window {
}
HorizontalBox {
alignment: center;
vertical-stretch: 0;
Button {
vertical-stretch: 0;
text: @tr("Start Profile Creation Wizard");
enabled: InputProfileData.profile_name != "" && InputProfileData.profile_name != "default";
clicked => {
@@ -65,5 +75,9 @@ export component InputProfileDialog inherits Window {
}
}
}
Rectangle {
vertical-stretch: 1;
}
}
}
+12 -9
View File
@@ -78,16 +78,19 @@ export component NetplayCreate inherits Window {
}
}
if NetplayData.game_name == "": Button {
text: @tr("Select ROM");
clicked => {
select_rom(NetplayData.rom_dir);
HorizontalBox {
alignment: center;
if NetplayData.game_name == "": Button {
text: @tr("Select ROM");
clicked => {
select_rom(NetplayData.rom_dir);
}
}
}
if NetplayData.game_name != "": Button {
text: NetplayData.game_name;
clicked => {
select_rom(NetplayData.rom_dir);
if NetplayData.game_name != "": Button {
text: NetplayData.game_name;
clicked => {
select_rom(NetplayData.rom_dir);
}
}
}