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
app-archive-1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
90
Issues
90
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Better
app-archive-1
Commits
bb4a4cad
Unverified
Commit
bb4a4cad
authored
Sep 18, 2017
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update App Store button width to align text with other buttons
- Also, comment out test
parent
d1d0a3e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Better/Better Mac/Base.lproj/Main.storyboard
Better/Better Mac/Base.lproj/Main.storyboard
+2
-2
Better/Better Mac/StatusAreaController.swift
Better/Better Mac/StatusAreaController.swift
+2
-2
No files found.
Better/Better Mac/Base.lproj/Main.storyboard
View file @
bb4a4cad
...
...
@@ -949,9 +949,9 @@ Gw
</customSpacing>
</stackView>
<button
hidden=
"YES"
verticalHuggingPriority=
"750"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"I5Z-N3-fs0"
>
<rect
key=
"frame"
x=
"
391"
y=
"53"
width=
"95
"
height=
"32"
/>
<rect
key=
"frame"
x=
"
404"
y=
"53"
width=
"82
"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"
83
"
id=
"erA-C5-aUh"
/>
<constraint
firstAttribute=
"width"
constant=
"
70
"
id=
"erA-C5-aUh"
/>
</constraints>
<buttonCell
key=
"cell"
type=
"push"
title=
"App Store"
bezelStyle=
"rounded"
alignment=
"center"
borderStyle=
"border"
imageScaling=
"proportionallyDown"
inset=
"2"
id=
"IcT-YP-ZR6"
>
<behavior
key=
"behavior"
pushIn=
"YES"
lightByBackground=
"YES"
lightByGray=
"YES"
/>
...
...
Better/Better Mac/StatusAreaController.swift
View file @
bb4a4cad
...
...
@@ -189,14 +189,14 @@ class StatusAreaController: NSTitlebarAccessoryViewController
let
json
=
try
JSONSerialization
.
jsonObject
(
with
:
data
,
options
:
[
.
allowFragments
])
as?
[
String
:
Any
]
guard
let
result
=
(
json
?[
"results"
]
as?
[
Any
])?
.
first
as?
[
String
:
Any
],
var
version
=
result
[
"version"
]
as?
String
let
result
=
(
json
?[
"results"
]
as?
[
Any
])?
.
first
as?
[
String
:
Any
],
let
version
=
result
[
"version"
]
as?
String
else
{
throw
VersionError
.
invalidResponse
}
// Test – also set version to var from let, above.
version
=
"2017.3"
//
version = "2017.3"
DispatchQueue
.
main
.
async
{
completion
(
version
!=
self
.
currentVersion
,
version
,
nil
)
}
}
...
...
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