Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
2ec34bde
Commit
2ec34bde
authored
May 28, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX GUI was forgotten in [
85f5092e
]
parent
a7aecc25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+9
-4
No files found.
modules/gui/macosx/update.m
View file @
2ec34bde
...
...
@@ -26,6 +26,8 @@
#ifdef UPDATE_CHECK
#include <assert.h>
/*****************************************************************************
* Preamble
*****************************************************************************/
...
...
@@ -132,8 +134,10 @@ static VLCUpdate *_o_sharedInstance = nil;
[
saveFilePanel
setRequiredFileType
:
@"dmg"
];
[
saveFilePanel
setCanSelectHiddenExtension
:
YES
];
[
saveFilePanel
setCanCreateDirectories
:
YES
];
update_release_t
*
p_release
=
update_GetRelease
(
p_u
);
assert
(
p_release
);
[
saveFilePanel
beginSheetForDirectory
:
nil
file
:
[[[
NSString
stringWithUTF8String
:
p_
u
->
release
.
psz_url
]
componentsSeparatedByString
:
@"/"
]
lastObject
]
[[[
NSString
stringWithUTF8String
:
p_
release
->
psz_url
]
componentsSeparatedByString
:
@"/"
]
lastObject
]
modalForWindow:
o_update_window
modalDelegate:
self
didEndSelector:
sel
...
...
@@ -176,11 +180,12 @@ static VLCUpdate *_o_sharedInstance = nil;
}
else
{
[
o_fld_releaseNote
setString
:
[
NSString
stringWithUTF8String
:
(
p_u
->
release
.
psz_desc
?
p_u
->
release
.
psz_desc
:
""
)]];
update_release_t
*
p_release
=
update_GetRelease
(
p_u
);
[
o_fld_releaseNote
setString
:
[
NSString
stringWithUTF8String
:
(
p_release
->
psz_desc
?
p_release
->
psz_desc
:
""
)]];
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC is outdated."
)];
[
o_fld_currentVersion
setStringValue
:
[
NSString
stringWithFormat
:
_NS
(
"The current release is %d.%d.%d%c."
),
p_
u
->
release
.
i_major
,
p_
u
->
release
.
i_minor
,
p_u
->
release
.
i_revision
,
p_u
->
release
.
extra
]];
_NS
(
"The current release is %d.%d.%d%c."
),
p_
release
->
i_major
,
p_
release
->
i_minor
,
p_release
->
i_revision
,
p_release
->
extra
]];
[
o_btn_DownloadNow
setEnabled
:
YES
];
/* Make sure the update window is showed in case we have something */
[
o_update_window
center
];
...
...
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