mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
Flatpak: disable update UI and resources
This commit is contained in:
parent
c1219ffef4
commit
02c088d66a
@ -658,9 +658,12 @@ static struct LWidget* main_widgets[] = {
|
||||
(struct LWidget*)&MainScreen.iptUsername, (struct LWidget*)&MainScreen.iptPassword,
|
||||
(struct LWidget*)&MainScreen.btnLogin, (struct LWidget*)&MainScreen.btnResume,
|
||||
(struct LWidget*)&MainScreen.lblStatus, (struct LWidget*)&MainScreen.btnDirect,
|
||||
(struct LWidget*)&MainScreen.btnSPlayer, (struct LWidget*)&MainScreen.lblUpdate,
|
||||
(struct LWidget*)&MainScreen.btnRegister, (struct LWidget*)&MainScreen.btnOptions,
|
||||
(struct LWidget*)&MainScreen.btnUpdates
|
||||
(struct LWidget*)&MainScreen.btnSPlayer, (struct LWidget*)&MainScreen.btnRegister,
|
||||
(struct LWidget*)&MainScreen.btnOptions,
|
||||
#ifndef CC_BUILD_FLATPAK
|
||||
(struct LWidget*)&MainScreen.btnUpdates,
|
||||
(struct LWidget*)&MainScreen.lblUpdate
|
||||
#endif
|
||||
};
|
||||
|
||||
LAYOUTS main_iptUsername[] = { { ANCHOR_CENTRE_MIN, -140 }, { ANCHOR_CENTRE, -120 } };
|
||||
@ -958,6 +961,7 @@ void MainScreen_SetActive(void) {
|
||||
}
|
||||
|
||||
|
||||
#ifndef CC_BUILD_FLATPAK
|
||||
/*########################################################################################################################*
|
||||
*----------------------------------------------------CheckResourcesScreen-------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
@ -1140,6 +1144,7 @@ void FetchResourcesScreen_SetActive(void) {
|
||||
Launcher_SetScreen((struct LScreen*)s);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*########################################################################################################################*
|
||||
*--------------------------------------------------------ServersScreen----------------------------------------------------*
|
||||
|
@ -246,6 +246,10 @@ void Launcher_Run(void) {
|
||||
|
||||
Http_Component.Init();
|
||||
CheckUpdateTask_Run();
|
||||
|
||||
#ifdef CC_BUILD_FLATPAK
|
||||
MainScreen_SetActive();
|
||||
#else
|
||||
Resources_CheckExistence();
|
||||
|
||||
if (Resources_Count) {
|
||||
@ -253,6 +257,7 @@ void Launcher_Run(void) {
|
||||
} else {
|
||||
MainScreen_SetActive();
|
||||
}
|
||||
#endif
|
||||
|
||||
for (;;) {
|
||||
Window_ProcessEvents();
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "Resources.h"
|
||||
#ifndef CC_BUILD_WEB
|
||||
#if !defined(CC_BUILD_WEB) && !defined(CC_BUILD_FLATPAK)
|
||||
#include "Funcs.h"
|
||||
#include "String.h"
|
||||
#include "Constants.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user