Add a warning to control autoconfigure

This commit is contained in:
Henrik Rydgård committed 2026-01-25 15:26:53 +01:00
1 parent 6016a02010
commit 756d161070
51 files changed
+78 -4

No files matched your search

+2
View File
@@ -302,7 +302,9 @@ void ControlMappingScreen::OnAutoConfigure(UI::EventParams &params) {
items.push_back(*s);
}
auto km = GetI18NCategory(I18NCat::KEYMAPPING);
auto di = GetI18NCategory(I18NCat::DIALOG);
UI::ListPopupScreen *autoConfList = new UI::ListPopupScreen(km->T("Autoconfigure for device"), items, -1);
autoConfList->SetNotification(NoticeLevel::WARN, di->T("This will overwrite the existing configuration"));
if (params.v)
autoConfList->SetPopupOrigin(params.v);
screenManager()->push(autoConfList);