Skip to content

Commit 917d7b3

Browse files
committed
Add program name to deprecation pop-up.
1 parent e6c172f commit 917d7b3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_MultiSwitchProgramWidget.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ MultiSwitchProgramWidget2::MultiSwitchProgramWidget2(
6969
box.warning(
7070
nullptr,
7171
"Deprecation Notice",
72-
"This program is deprecated and no longer maintained. Please consider using a newer alternative."
72+
QString::fromStdString(
73+
"The program \"" + descriptor.display_name() + "\" is deprecated "
74+
"and no longer maintained. Please consider using a newer alternative."
75+
)
7376
);
7477
}
7578

SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_SingleSwitchProgramWidget.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ SingleSwitchProgramWidget2::SingleSwitchProgramWidget2(
6161
box.warning(
6262
nullptr,
6363
"Deprecation Notice",
64-
"This program is deprecated and no longer maintained. Please consider using a newer alternative."
64+
QString::fromStdString(
65+
"The program \"" + descriptor.display_name() + "\" is deprecated "
66+
"and no longer maintained. Please consider using a newer alternative."
67+
)
6568
);
6669
}
6770

0 commit comments

Comments
 (0)