improved refreshed button

This commit is contained in:
Odweta
2024-12-22 12:07:51 +01:00
parent f0fcad3491
commit 8b7301a30d
@@ -87,15 +87,17 @@ fun launchContinue(
if (!internetAwaitListenerRunning) if (!internetAwaitListenerRunning)
setOnInternetAvailListener(ctx) setOnInternetAvailListener(ctx)
global.launched = true if (!global.launched) {
global.refreshed = true
refreshButtonContentColor.value = Color.White
// show the default (main) screen // show the default (main) screen
global.currentScreen = Screen.Main global.currentScreen = Screen.Main
// inside show the timetable // inside show the timetable
global.currentScreenElement = ScreenElement.Timetable global.currentScreenElement = ScreenElement.Timetable
}
global.launched = true
global.refreshed = true
refreshButtonContentColor.value = Color.White
// show the full name of the user in the toolbar as a status // show the full name of the user in the toolbar as a status
if (Util.internetAvail(ctx)) { if (Util.internetAvail(ctx)) {