Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8e9cdc15
Commit
8e9cdc15
authored
Feb 27, 2010
by
Geoffroy Couprie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Launch the installer after download
parent
fffce3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/misc/update.c
src/misc/update.c
+13
-0
No files found.
src/misc/update.c
View file @
8e9cdc15
...
...
@@ -48,10 +48,13 @@
#include <vlc_strings.h>
#include <vlc_fs.h>
#include <vlc_dialog.h>
#include <vlc_interface.h>
#include <gcrypt.h>
#include <vlc_gcrypt.h>
#include <shellapi.h>
#include "update.h"
#include "../libvlc.h"
...
...
@@ -729,6 +732,16 @@ static void* update_DownloadReal( vlc_object_t *p_this )
msg_Info
(
p_udt
,
"%s authenticated"
,
psz_destfile
);
free
(
p_hash
);
int
answer
=
dialog_Question
(
p_udt
,
_
(
"Update VLC media player"
),
_
(
"The new version was successfully downloaded. Do you want to close VLC and install it now?"
),
_
(
"Install"
),
_
(
"Cancel"
),
NULL
);
if
(
answer
==
1
)
{
answer
=
ShellExecuteA
(
NULL
,
"open"
,
psz_destfile
,
NULL
,
NULL
,
SW_SHOW
);
if
(
answer
>
32
)
libvlc_Quit
(
p_this
->
p_libvlc
);
}
end:
if
(
p_progress
)
dialog_ProgressDestroy
(
p_progress
);
...
...
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