More android UI improvements
This commit is contained in:
parent
c083ccc1a9
commit
6921f57cfe
21 changed files with 196 additions and 104 deletions
23
src/main.cpp
23
src/main.cpp
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue