When lazy-loaded links were making a new tab, they wasn't calling
tab->navigateTo(url, BrowserTab::PushImmediate). What's important is only
it can push urls to the history and making a new function just for that
seemed like it'd just complicate things.
So I've changed it to call tab->navigateTo() on every loading type.
Unfortunately, that fixed our issue partly.
Sure, links are now put into the history, but lazy-loaded tabs stopped
being lazy-loaded anymore. Moreover, they were also reloading a page on first
tab switch.
So I've made also a check that stops requesting lazy-loaded urls,
which made lazy-loading work as intended again, and moved the unsetting
lazy-loaded boolean on reload instead of right after it to be able to request
the file, which finally...
Closes: #214
Before this change, only the first user who had opened kristall had working ipc.
The easiest fix was to prepend an username to the socket
and that's exactly what it does on Windows.
On Linux and other UNIX systems, we could do that too, but I came up with a bit
different approach. I didn't like the fact that Qt puts sockets in /tmp,
but luckily we can provide the full path for the socket (Windows uses pipes,
so that's why it has its own case). I've changed it to put sockets in
the runtime directory, because it's designed for that type of files
and it's user-specific, so we don't even have to prepend the username to it.
We don't need to wrap tr() with QString, because it returns QString anyway.
Although it doesn't change the binary size (mostly because compilers were
smart to remove that already), it helps to make the code a little bit cleaner.
It's a somewhat continuation of c740189bca,
but I thought back then it happened only there, so now I've removed it from
all places.
This excludes third-party libraries from GitHub language detection,
so the project will be correctly labeled -- as C++ instead of C.
This also adds man-page generation scripts to the graph, since GitHub
automatically marks the doc/ folder as documentation, making them
not visible in the graph.
https://github.com/github/linguist/blob/master/docs/overrides.md
[skip ci]
Now, resetFormatting() between a header and a list block will add an empty block
(because that's what resetFormatting()'s doing), which might look a bit off.
I couldn't find a better way to this, since using
cursor.movePosition(QTextCursor::NextBlock) won't centre the first header
in the next commit. ://