Skip to content

Commit 666b0ce

Browse files
committed
Disabled edit button
1 parent d98070f commit 666b0ce

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

iTorrent/CustomViews/FileManagerTitleView.xib

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17140" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17115"/>
77
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
88
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
99
</dependencies>
@@ -20,11 +20,11 @@
2020
<rect key="frame" x="0.0" y="0.0" width="372" height="44"/>
2121
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2222
<subviews>
23-
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="0fA-Rg-s2B">
23+
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" alignment="center" spacing="-8" translatesAutoresizingMaskIntoConstraints="NO" id="0fA-Rg-s2B">
2424
<rect key="frame" x="0.0" y="0.0" width="334" height="44"/>
2525
<subviews>
2626
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Title" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uCL-su-1B3" customClass="MarqueeLabel" customModule="iTorrent">
27-
<rect key="frame" x="0.0" y="0.0" width="334" height="22"/>
27+
<rect key="frame" x="151.5" y="0.0" width="31" height="26"/>
2828
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
2929
<nil key="textColor"/>
3030
<nil key="highlightedColor"/>
@@ -38,7 +38,7 @@
3838
</userDefinedRuntimeAttributes>
3939
</label>
4040
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TestFolderText/ABC123" textAlignment="center" lineBreakMode="headTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Bb-xh-YZz">
41-
<rect key="frame" x="0.0" y="22" width="334" height="22"/>
41+
<rect key="frame" x="95" y="18" width="144.5" height="26"/>
4242
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
4343
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
4444
<nil key="highlightedColor"/>
@@ -54,15 +54,20 @@
5454
</subviews>
5555
</stackView>
5656
</subviews>
57+
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
5758
<constraints>
5859
<constraint firstItem="0fA-Rg-s2B" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" constant="-19" id="PGO-sw-RuX"/>
5960
<constraint firstItem="0fA-Rg-s2B" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="TTV-pk-hGp"/>
6061
<constraint firstItem="0fA-Rg-s2B" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" id="Uvr-87-FwF"/>
6162
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="0fA-Rg-s2B" secondAttribute="bottom" id="zGl-E7-GlO"/>
6263
</constraints>
6364
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
64-
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
6565
<point key="canvasLocation" x="32" y="-241"/>
6666
</view>
6767
</objects>
68+
<designables>
69+
<designable name="uCL-su-1B3">
70+
<size key="intrinsicContentSize" width="31" height="18"/>
71+
</designable>
72+
</designables>
6873
</document>

iTorrent/ViewControllers/TorrentDetails/TorrentFilesController.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ class TorrentFilesController: ThemedUIViewController {
3939
super.init(coder: coder)
4040
}
4141

42-
func localize() {
43-
//editButton.title = Localize.get("TorrentFilesController.Edit")
44-
selectAllButton.title = Localize.get("TorrentFilesController.SelectAll")
45-
deselectAllButton.title = Localize.get("TorrentFilesController.DeselectAll")
46-
}
47-
4842
override func themeUpdate() {
4943
super.themeUpdate()
5044
tableView.backgroundColor = Themes.current.backgroundMain
@@ -63,13 +57,12 @@ class TorrentFilesController: ThemedUIViewController {
6357
deselectAllButton = UIBarButtonItem(title: "TorrentFilesController.DeselectAll".localized, style: .plain, target: self, action: #selector(deselectAllAction))
6458
deselectAllButton.tintColor = .systemRed
6559

66-
navigationItem.setRightBarButton(editButton, animated: false)
60+
// navigationItem.setRightBarButton(editButton, animated: false)
6761
toolbarItems = toolBarItems
6862
}
6963

7064
override func viewDidLoad() {
7165
super.viewDidLoad()
72-
localize()
7366

7467
if files == nil {
7568
files = TorrentSdk.getFilesOfTorrentByHash(hash: torrentHash)!

0 commit comments

Comments
 (0)