mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-04 23:36:33 +08:00
Implemented Preset::file_exists()
This commit is contained in:
parent
2371334048
commit
6e80e73a3a
@ -10,6 +10,7 @@
|
|||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
|
#include <wx/filefn.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
@ -50,7 +51,7 @@ public:
|
|||||||
/// Format the name appropriately.
|
/// Format the name appropriately.
|
||||||
wxString dropdown_name() { return (this->dirty() ? wxString(this->name) << " " << _("(modified)") : wxString(this->name)); }
|
wxString dropdown_name() { return (this->dirty() ? wxString(this->name) << " " << _("(modified)") : wxString(this->name)); }
|
||||||
|
|
||||||
bool file_exists(wxString name);
|
bool file_exists() const { return wxFileExists(this->name); }
|
||||||
|
|
||||||
bool prompt_unsaved_changes(wxWindow* parent);
|
bool prompt_unsaved_changes(wxWindow* parent);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user