Skip to content

Commit

Permalink
Cleaned code
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-128 committed Dec 9, 2023
1 parent 4fecf0d commit b6ea011
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
10 changes: 10 additions & 0 deletions qBitControl.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions qBitControl.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
14 changes: 1 addition & 13 deletions qBitControl/TorrentView/TorrentListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,9 @@ struct TorrentListView: View {
}

func getTorrents() {
if(scenePhase != .active) {
//print("App inactive")
if(scenePhase != .active || isFilterView || isTorrentAddView) {
return
}
if(isFilterView) {
//print("Filter view active")
return
}
if(isTorrentAddView) {
//print("Torrent view active")
return
}

//print("Fetching torrents")
//print(scenePhase)

var queryItems = [URLQueryItem(name: "sort", value: sort), URLQueryItem(name: "filter", value: filter), URLQueryItem(name: "reverse", value: String(reverse))]

Expand Down

0 comments on commit b6ea011

Please sign in to comment.