Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c1f7a646
Commit
c1f7a646
authored
Mar 27, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X gui: Check for update on startup.
parent
89c24db9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+11
-5
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+6
-2
No files found.
modules/gui/macosx/intf.m
View file @
c1f7a646
...
@@ -737,6 +737,15 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -737,6 +737,15 @@ static VLCMain *_o_sharedMainInstance = nil;
return
YES
;
return
YES
;
}
}
-
(
void
)
applicationDidFinishLaunching
:(
NSNotification
*
)
aNotification
{
/* Check for update silently on startup */
NSLog
(
@"checking for update"
);
if
(
!
nib_update_loaded
)
nib_update_loaded
=
[
NSBundle
loadNibNamed
:
@"Update"
owner
:
self
];
[
NSThread
detachNewThreadSelector
:
@selector
(
checkForUpdate
)
toTarget
:
o_update
withObject
:
NULL
];
}
/* Listen to the remote in exclusive mode, only when VLC is the active
/* Listen to the remote in exclusive mode, only when VLC is the active
application */
application */
-
(
void
)
applicationDidBecomeActive
:(
NSNotification
*
)
aNotification
-
(
void
)
applicationDidBecomeActive
:(
NSNotification
*
)
aNotification
...
@@ -1844,12 +1853,9 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1844,12 +1853,9 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
IBAction
)
checkForUpdate
:(
id
)
sender
-
(
IBAction
)
checkForUpdate
:(
id
)
sender
{
{
if
(
!
nib_update_loaded
)
if
(
!
nib_update_loaded
)
{
nib_update_loaded
=
[
NSBundle
loadNibNamed
:
@"Update"
owner
:
self
];
nib_update_loaded
=
[
NSBundle
loadNibNamed
:
@"Update"
owner
:
self
];
[
o_update
showUpdateWindow
];
[
o_update
showUpdateWindow
];
}
else
{
[
o_update
showUpdateWindow
];
}
}
}
-
(
IBAction
)
openReadMe
:(
id
)
sender
-
(
IBAction
)
openReadMe
:(
id
)
sender
...
...
modules/gui/macosx/update.m
View file @
c1f7a646
...
@@ -205,6 +205,10 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -205,6 +205,10 @@ static VLCUpdate *_o_sharedInstance = nil;
p_uit
->
mirror
.
psz_type
);
p_uit
->
mirror
.
psz_type
);
/* make sure that we perform this check only once */
/* make sure that we perform this check only once */
releaseChecked
=
YES
;
releaseChecked
=
YES
;
/* Make sure the update window is showed in case we have something */
[
o_update_window
center
];
[
o_update_window
makeKeyAndOrderFront
:
self
];
}
}
else
if
(
!
releaseChecked
)
else
if
(
!
releaseChecked
)
{
{
...
...
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