Implement iOS "bookmark" support, to preserve permissions to recent files from iCloud

This commit is contained in:
Henrik Rydgård committed 2026-03-07 15:04:49 +01:00
1 parent d6ca0378b6
commit 14ef83f06a
7 files changed
+173 -10

No files matched your search

+2 -2
View File
@@ -1455,11 +1455,11 @@ void MainScreen::CreateViews() {
auto gr = GetI18NCategory(I18NCat::GRAPHICS);
Button *fullscreenButton = logo->Add(new Button("", ImageID(), new AnchorLayoutParams(48, 48, NONE, 0, 0, NONE, Centering::None)));
fullscreenButton->SetIgnoreText(true);
fullscreenButton->OnClick.Add([this](UI::EventParams &e) {
fullscreenButton->OnClick.Add([](UI::EventParams &e) {
g_Config.bFullScreen = !g_Config.bFullScreen;
System_ApplyFullscreenState();
});
fullscreenButton->SetImageIDFunc([this]() {
fullscreenButton->SetImageIDFunc([]() {
return g_Config.bFullScreen ? ImageID("I_RESTORE") : ImageID("I_FULLSCREEN");
});
#endif