Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main

main
Bob Mottram 2021-04-01 19:08:13 +01:00
commit a276d4a8a1
1 changed files with 12 additions and 0 deletions

View File

@ -1360,6 +1360,7 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
"repliesNotifyChanged": False
}
prevTimelineFirstId = ''
desktopShown = False
while (1):
if not pgpKeyUpload:
sayStr = indent + 'Uploading PGP public key'
@ -1429,9 +1430,20 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
pageNumber,
newRepliesExist,
newDMsExist)
desktopShown = True
prevTimelineFirstId = timelineFirstId
else:
session = createSession(proxyType)
if not desktopShown:
if not session:
print('No session\n')
_desktopClearScreen()
_desktopShowBanner()
print('No posts\n')
if proxyType == 'tor':
print('You may need to run the desktop client ' + \
'with the --http option')
# wait for a while, or until a key is pressed
if noKeyPress: