MCPcopy Create free account
hub / github.com/WendellCraft/ModpackDebuggerKit / NewProject

Method NewProject

app.go:192–211  ·  view source on GitHub ↗

--- Project Management ---

()

Source from the content-addressed store, hash-verified

190// --- Project Management ---
191
192func (a *App) NewProject() {
193 a.mu.Lock()
194 defer a.mu.Unlock()
195
196 if a.ActiveScan {
197 a.emitLog("Cannot create new project during active scan", LogError)
198 return
199 }
200
201 a.ProjectData = &ProjectData{
202 Dependencies: make(map[string][]string),
203 Theme: "dark",
204 SavedNewMods: []string{},
205 DismissedHangingLibs: []string{},
206 }
207 a.ProjectFilePath = ""
208 a.ProjectModified = false
209 a.HangingLibraries = nil
210 a.emitLog("New project created", LogSuccess)
211}
212
213func (a *App) GetProjectData() *ProjectData {
214 a.mu.Lock()

Callers

nothing calls this directly

Calls 1

emitLogMethod · 0.95

Tested by

no test coverage detected