Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
magicseteditor
Commits
0f0b9c94
Commit
0f0b9c94
authored
May 31, 2008
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn about removing packages
parent
076dbf54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
src/gui/packages_window.cpp
src/gui/packages_window.cpp
+14
-0
src/resource/common/expected_locale_keys
src/resource/common/expected_locale_keys
+3
-3
No files found.
src/gui/packages_window.cpp
View file @
0f0b9c94
...
@@ -264,9 +264,23 @@ void PackagesWindow::onOk(wxCommandEvent& ev) {
...
@@ -264,9 +264,23 @@ void PackagesWindow::onOk(wxCommandEvent& ev) {
// count number of packages to change
// count number of packages to change
int
to_change
=
0
;
int
to_change
=
0
;
int
to_download
=
0
;
int
to_download
=
0
;
int
to_remove
=
0
;
int
with_modifications
=
0
;
FOR_EACH
(
ip
,
installable_packages
)
{
FOR_EACH
(
ip
,
installable_packages
)
{
if
(
!
ip
->
has
(
PACKAGE_NOTHING
))
++
to_change
;
if
(
!
ip
->
has
(
PACKAGE_NOTHING
))
++
to_change
;
if
((
ip
->
action
&
PACKAGE_INSTALL
)
&&
ip
->
installer
&&
!
ip
->
installer
->
installer
)
++
to_download
;
if
((
ip
->
action
&
PACKAGE_INSTALL
)
&&
ip
->
installer
&&
!
ip
->
installer
->
installer
)
++
to_download
;
if
(
ip
->
action
&
PACKAGE_REMOVE
)
{
to_remove
++
;
if
(
ip
->
status
&
PACKAGE_MODIFIED
)
with_modifications
++
;
}
}
// Warn about removing
if
(
to_remove
)
{
int
result
=
wxMessageBox
(
with_modifications
==
0
?
_ERROR_1_
(
"remove packages"
,
String
()
<<
to_remove
)
:
_ERROR_2_
(
"remove packages modified"
,
String
()
<<
to_remove
,
String
()
<<
with_modifications
),
_TITLE_
(
"packages window"
),
wxICON_EXCLAMATION
|
wxYES_NO
);
if
(
result
==
wxNO
)
return
;
}
}
// progress dialog
// progress dialog
wxProgressDialog
progress
(
wxProgressDialog
progress
(
...
...
src/resource/common/expected_locale_keys
View file @
0f0b9c94
#
This
file
contains
the
keys
expected
to
be
in
MSE
locales
#
This
file
contains
the
keys
expected
to
be
in
MSE
locales
#
It
was
automatically
generated
by
tools
/
locale
/
locale
.
pl
#
It
was
automatically
generated
by
tools
/
locale
/
locale
.
pl
#
Generated
on
Sat
May
31
1
8
:
40
:
22
2008
#
Generated
on
Sat
May
31
1
9
:
21
:
25
2008
action
:
action
:
add
control
point
:
0
add
control
point
:
0
...
@@ -115,8 +115,8 @@ error:
...
@@ -115,8 +115,8 @@ error:
package
not
found
:
1
package
not
found
:
1
package
out
of
date
:
3
package
out
of
date
:
3
package
too
new
:
4
package
too
new
:
4
remove
packages
:
optional
,
1
remove
packages
:
1
remove
packages
modified
:
optional
,
2
remove
packages
modified
:
2
remove
packages
successful
:
1
remove
packages
successful
:
1
stylesheet
and
set
refer
to
different
game
:
0
stylesheet
and
set
refer
to
different
game
:
0
successful
install
:
optional
,
2
successful
install
:
optional
,
2
...
...
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