mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
@@ -20,7 +20,7 @@ IMPLEMENT_VALUE_EDITOR(Image) {}
|
|||||||
|
|
||||||
bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) {
|
bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) {
|
||||||
String filename = wxFileSelector(_("Open image file"), settings.default_image_dir, _(""), _(""),
|
String filename = wxFileSelector(_("Open image file"), settings.default_image_dir, _(""), _(""),
|
||||||
_("All images|*.bmp;*.jpg;*.png;*.gif|Windows bitmaps (*.bmp)|*.bmp|JPEG images (*.jpg;*.jpeg)|*.jpg;*.jpeg|PNG images (*.png)|*.png|GIF images (*.gif)|*.gif|TIFF images (*.tif;*.tiff)|*.tif;*.tiff"),
|
_("All images|*.bmp;*.jpg;*.jpeg;*.png;*.gif;*.tif;*.tiff|Windows bitmaps (*.bmp)|*.bmp|JPEG images (*.jpg;*.jpeg)|*.jpg;*.jpeg|PNG images (*.png)|*.png|GIF images (*.gif)|*.gif|TIFF images (*.tif;*.tiff)|*.tif;*.tiff"),
|
||||||
wxFD_OPEN, wxGetTopLevelParent(&editor()));
|
wxFD_OPEN, wxGetTopLevelParent(&editor()));
|
||||||
if (!filename.empty()) {
|
if (!filename.empty()) {
|
||||||
settings.default_image_dir = wxPathOnly(filename);
|
settings.default_image_dir = wxPathOnly(filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user