1
0
Fork 0

- [GUI] fixed URI printed on address bar when opening an URI from the command line (switch '-o');

- [GUI] changed selection colors in gemtext widget.
This commit is contained in:
cage 2024-08-02 16:25:04 +02:00
parent 6c7a9904a6
commit 1da16a2fe1
2 changed files with 8 additions and 6 deletions

View File

@ -16,9 +16,9 @@ gemini.image.inline.relative.scaling = 1/3
gemini.favicon = "🌍"
gemini.main-window.select.background = #f2d8f4
gemini.main-window.select.background = #ff00ff
gemini.main-window.select.foreground = #5b4636
gemini.main-window.select.foreground = #ffffff
gemini.main-window.foreground = #5b4636

View File

@ -2035,10 +2035,12 @@ local file paths."
(set-certificate-button-inactive main-frame)
(gui:wait-complete-redraw)
(when (string-not-empty-p starting-iri)
(handler-case
(set-address-bar-text main-frame (fs:relative-file-path->absolute starting-iri))
(error ()
(set-address-bar-text main-frame starting-iri)))
(if (iri:absolute-url-p starting-iri)
(set-address-bar-text main-frame starting-iri)
(handler-case
(set-address-bar-text main-frame (fs:relative-file-path->absolute starting-iri))
(error ()
(set-address-bar-text main-frame starting-iri))))
(open-iri starting-iri main-frame nil))
(client-scheduler:start))))