Disable QML cache, responsible of multiple bugs

This commit is contained in:
miruka 2019-04-28 20:37:11 -04:00
parent c4fb0c1150
commit 67c3ef5906
4 changed files with 10 additions and 7 deletions

View File

@ -3,7 +3,6 @@
- Don't bake in size properties for components
- Bug fixes
- The damn remember account dialog
- 100% CPU usage when hitting top edge to trigger messages loading
- Sending `![A picture](https://picsum.photos/256/256)` → not clickable?
- Icons aren't reloaded
@ -25,6 +24,7 @@
- Prevent using the SendBox if no permission (power levels)
- Spinner when loading past room events, images or clicking buttons
- Better theming/styling system
- See about <https://doc.qt.io/qt-5/qtquickcontrols2-configuration.html>
- Settings page
- Multiaccount aliases

View File

@ -1,12 +1,17 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under GPLv3.
import os
import sys
from . import app
# logging.basicConfig(level=logging.INFO)
# The disk cache is responsible for multiple display bugs when running
# the app for the first time/when cache needs to be recompiled, on top
# of litering the source folders with .qmlc files.
os.environ["QML_DISABLE_DISK_CACHE"] = "1"
def run() -> None:
from . import app
_ = app.Application(sys.argv)

View File

@ -12,8 +12,6 @@ HColumnLayout {
property bool canLoadPastEvents: true
Component.onCompleted: console.log("replaced")
id: chatPage
onFocusChanged: sendBox.setFocus()

View File

@ -44,8 +44,8 @@ Item {
}
Component.onCompleted: {
if (initialPageSet) { return }
initialPageSet = true
if (pageStack.initialPageSet) { return }
pageStack.initialPageSet = true
showPage(accountsLoggedIn ? "Default" : "SignIn")
}