mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
(iOS) runActionSheet - make it more robust
This commit is contained in:
parent
2ccee86694
commit
a094aaf302
@ -237,10 +237,13 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
|||||||
|
|
||||||
[self attachDefaultingGestureTo:result];
|
[self attachDefaultingGestureTo:result];
|
||||||
|
|
||||||
result.textLabel.text = BOXSTRING(self.setting->short_description);
|
result.textLabel.text = BOXSTRING("N/A");
|
||||||
|
|
||||||
if (self.setting)
|
if (self.setting)
|
||||||
{
|
{
|
||||||
|
if (self.setting->short_description)
|
||||||
|
result.textLabel.text = BOXSTRING(self.setting->short_description);
|
||||||
|
|
||||||
result.detailTextLabel.text = BOXSTRING(setting_data_get_string_representation(self.setting, buffer, sizeof(buffer)));
|
result.detailTextLabel.text = BOXSTRING(setting_data_get_string_representation(self.setting, buffer, sizeof(buffer)));
|
||||||
|
|
||||||
if (self.setting->type == ST_PATH)
|
if (self.setting->type == ST_PATH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user