More android UI improvements

This commit is contained in:
Yousef Khadadeh 2026-05-14 20:21:45 +03:00
parent c083ccc1a9
commit 6921f57cfe
21 changed files with 196 additions and 104 deletions

View file

@ -547,20 +547,23 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
mS.m->window.canCreateSurfaces = true;
resize_window(mS);
mS.m->set_first_screen(std::make_unique<FileSelectScreen>(*mS.m));
if(listOfFilesToOpenFromCommand.empty()) {
//mS.m->create_new_tab({
// .isClient = false
//});
}
if(mS.m->conf.mobileUI)
mS.m->set_first_screen(std::make_unique<FileSelectScreen>(*mS.m));
else {
for(std::filesystem::path& f : listOfFilesToOpenFromCommand) {
mS.m->set_first_screen(std::make_unique<DesktopDrawingProgramScreen>(*mS.m));
if(listOfFilesToOpenFromCommand.empty()) {
mS.m->create_new_tab({
.isClient = false,
.filePathSource = f
.isClient = false
});
}
else {
for(std::filesystem::path& f : listOfFilesToOpenFromCommand) {
mS.m->create_new_tab({
.isClient = false,
.filePathSource = f
});
}
}
}
mS.m->update(); // Run update once to make sure that callbacks dont crash