browser: fix minor status bar issues
This commit is contained in:
parent
8e4f8c4c70
commit
b22981cef6
|
@ -28,6 +28,9 @@ opt. maintain history between sessions
|
|||
history (forward) (useful?)
|
||||
search in page (ugh)
|
||||
remember scroll pos in history
|
||||
identity management
|
||||
"previous/next" pages
|
||||
directory view for file scheme
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ def open_gemini_url(
|
|||
if use_cache and url in browser.cache:
|
||||
browser.load_page(browser.cache[url])
|
||||
browser.current_url = url
|
||||
browser.set_status(url)
|
||||
return url
|
||||
|
||||
logging.info(
|
||||
|
@ -232,7 +231,6 @@ def _handle_successful_response(browser: Browser, response: Response, url: str):
|
|||
browser.load_page(page)
|
||||
browser.current_url = url
|
||||
browser.cache[url] = page
|
||||
browser.set_status(url)
|
||||
return url
|
||||
elif filepath:
|
||||
try:
|
||||
|
|
|
@ -39,12 +39,11 @@ def get_downloads_path() -> Path:
|
|||
if line.startswith("XDG_DOWNLOAD_DIR="):
|
||||
download_path = line.rstrip().split("=", maxsplit=1)[1]
|
||||
download_path = download_path.strip('"')
|
||||
download_path = download_path.replace("$HOME", expanduser("~"))
|
||||
break
|
||||
home = expanduser("~")
|
||||
download_path = download_path.replace("$HOME", home)
|
||||
return Path(download_path)
|
||||
except OSError:
|
||||
pass
|
||||
if download_path:
|
||||
return Path(download_path)
|
||||
return Path.home()
|
||||
|
||||
|
||||
|
|
Reference in a new issue