Add more debuggers. Allow to load core dumps.

This commit is contained in:
Martín Lucas Golini
2025-01-20 23:52:29 -03:00
parent 277f410ad0
commit f7be6080b5
5 changed files with 144 additions and 37 deletions

View File

@@ -313,8 +313,7 @@ void App::onDocumentUndoRedo( UICodeEditor* editor, TextDocument& doc ) {
void App::openFileDialog() {
UIFileDialog* dialog =
UIFileDialog::New( UIFileDialog::DefaultFlags, "*",
mLastFileFolder.empty() ? getLastUsedFolder() : mLastFileFolder );
UIFileDialog::New( UIFileDialog::DefaultFlags, "*", getDefaultFileDialogFolder() );
dialog->setWindowFlags( UI_WIN_DEFAULT_FLAGS | UI_WIN_MAXIMIZE_BUTTON | UI_WIN_MODAL );
dialog->setTitle( i18n( "open_file", "Open File" ) );
dialog->setCloseShortcut( KEY_ESCAPE );
@@ -335,7 +334,11 @@ void App::openFileDialog() {
dialog->show();
}
std::string App::getLastUsedFolder() {
std::string App::getDefaultFileDialogFolder() const {
return mLastFileFolder.empty() ? getLastUsedFolder() : mLastFileFolder;
}
std::string App::getLastUsedFolder() const {
if ( !mCurrentProject.empty() && mCurrentProject != getPlaygroundPath() )
return mCurrentProject;
if ( !mRecentFolders.empty() )
@@ -1751,6 +1754,10 @@ AppConfig& App::getConfig() {
return mConfig;
}
const AppConfig& App::getConfig() const {
return mConfig;
}
const std::map<KeyBindings::Shortcut, std::string>& App::getRealDefaultKeybindings() {
if ( mRealDefaultKeybindings.empty() ) {
mRealDefaultKeybindings.insert( mRealLocalKeybindings.begin(),