Skip to content
Snippets Groups Projects
Commit 39a05e65 authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- fixed issue where changing main file in custom project would not set changed...

- fixed issue where changing main file in custom project would not set changed file (results in auto save when executing a test or compile)
parent c94d7645
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ import Logger from './helpers/logger' ...@@ -13,7 +13,7 @@ import Logger from './helpers/logger'
* y - breaking changes / new features * y - breaking changes / new features
* z - fixes, small changes * z - fixes, small changes
*/ */
export const versionString = '2.19.1' export const versionString = '2.19.2'
export const supportMail = 'yapex@informatik.uni-halle.de' export const supportMail = 'yapex@informatik.uni-halle.de'
......
...@@ -47,7 +47,7 @@ import { ...@@ -47,7 +47,7 @@ import {
} from "../../reducers/editCustomProjectSite/subSets/setCustomProjectSolutionReducer"; } from "../../reducers/editCustomProjectSite/subSets/setCustomProjectSolutionReducer";
import {setSolutionFiles_AndRefreshEditor} from "../../../helpers/editorHelper"; import {setSolutionFiles_AndRefreshEditor} from "../../../helpers/editorHelper";
import { import {
openTabChangeCustomProjectSolutionEditor, openTabChangeCustomProjectSolutionEditor, setHasUnsavedChanges,
setSelectedTabIdCustomProjectSolutionEditor setSelectedTabIdCustomProjectSolutionEditor
} from "./editorActions/customProjectSolutionEditorActions"; } from "./editorActions/customProjectSolutionEditorActions";
import {getCustomProjectAsync, getCustomProjectTestResultsAsync} from "./editCustomProjectCrudActions"; import {getCustomProjectAsync, getCustomProjectTestResultsAsync} from "./editCustomProjectCrudActions";
...@@ -101,13 +101,22 @@ export function onCreateCustomProjectSolutionFile(newFile: CustomProjectSolution ...@@ -101,13 +101,22 @@ export function onCreateCustomProjectSolutionFile(newFile: CustomProjectSolution
} }
} }
export function setMainFileIdCustomProject(mainFileId: number): SET_mainFileIdAction { export function _setMainFileIdCustomProject(mainFileId: number): SET_mainFileIdAction {
return { return {
type: ActionType.SET_mainFileId, type: ActionType.SET_mainFileId,
mainFileId mainFileId
} }
} }
export function setMainFileIdCustomProject(mainFileId: number): MultiActions {
return (dispatch, getState) => {
dispatch(_setMainFileIdCustomProject(mainFileId))
dispatch(setHasUnsavedChanges(true))
}
}
export function setCustomProjectCodeEditorSettingsDialogDisplayed(isDisplayed: boolean): SET_isCustomProjectCodeEditorSettingsDialogDisplayedAction { export function setCustomProjectCodeEditorSettingsDialogDisplayed(isDisplayed: boolean): SET_isCustomProjectCodeEditorSettingsDialogDisplayedAction {
return { return {
type: ActionType.SET_isCustomProjectCodeEditorSettingsDialogDisplayed, type: ActionType.SET_isCustomProjectCodeEditorSettingsDialogDisplayed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment