Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
plasma-angelfish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rinigus Saar
plasma-angelfish
Commits
8086b375
Verified
Commit
8086b375
authored
Mar 26, 2020
by
Jonah Brüchert
🌳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webapp: remove code related to
* private mode * history * Angelfish settings
parent
e5cec480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
angelfish-webapp/contents/ui/WebAppView.qml
angelfish-webapp/contents/ui/WebAppView.qml
+1
-25
No files found.
angelfish-webapp/contents/ui/WebAppView.qml
View file @
8086b375
...
...
@@ -61,6 +61,7 @@ WebEngineView {
UserAgentGenerator
{
id
:
userAgent
onUserAgentChanged
:
webEngineView
.
reload
()
isMobile
:
Kirigami
.
Settings
.
isMobile
}
profile
{
...
...
@@ -95,8 +96,6 @@ WebEngineView {
}
settings
{
autoLoadImages
:
webBrowser
.
settings
.
webAutoLoadImages
javascriptEnabled
:
webBrowser
.
settings
.
webJavascriptEnabled
// Disable builtin error pages in favor of our own
errorPageEnabled
:
false
// Load larger touch icons
...
...
@@ -160,14 +159,6 @@ WebEngineView {
loadingActive
=
true
;
}
if
(
loadRequest
.
status
===
WebEngineView
.
LoadSucceededStatus
)
{
if
(
!
privateMode
)
{
var
request
=
new
Object
;
// FIXME
request
.
url
=
currentWebView
.
url
;
request
.
title
=
currentWebView
.
title
;
request
.
icon
=
currentWebView
.
icon
;
BrowserManager
.
addToHistory
(
request
);
BrowserManager
.
updateLastVisited
(
currentWebView
.
url
);
}
loadingActive
=
false
;
}
if
(
loadRequest
.
status
===
WebEngineView
.
LoadFailedStatus
)
{
...
...
@@ -248,21 +239,6 @@ WebEngineView {
sheetLoader
.
item
.
open
()
}
onVisibleChanged
:
{
// set user agent to the current displayed tab
// this ensures that we follow mobile preference
// of the current webview. also update the current
// snapshot image with short delay to be sure that
// all kirigami pages have moved into place
if
(
visible
)
{
profile
.
httpUserAgent
=
Qt
.
binding
(
function
()
{
return
userAgent
.
userAgent
;
});
if
(
reloadOnVisible
)
{
reloadOnVisible
=
false
;
reload
();
}
}
}
function
stopLoading
()
{
loadingActive
=
false
;
stop
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment