summaryrefslogtreecommitdiff
path: root/src/ui/ui_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_main.cpp')
-rw-r--r--src/ui/ui_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_main.cpp b/src/ui/ui_main.cpp
index 59c4156..3405a7e 100644
--- a/src/ui/ui_main.cpp
+++ b/src/ui/ui_main.cpp
@@ -144,12 +144,12 @@ void ui_draw_main()
ImGuiWindowFlags_NoBringToFrontOnFocus |
ImGuiWindowFlags_NoCollapse);
- char* path = administration_file_path_get();
- if (strlen(path) == 0) {
+ char* path = administration_get_file_path();
+ if (path == NULL) {
ImGui::Text("%s: %s", localize("ui.workingOn"), localize("ui.unsavedProject"));
}
else {
- ImGui::Text("%s: %s", localize("ui.workingOn"), administration_file_path_get());
+ ImGui::Text("%s: %s", localize("ui.workingOn"), path);
}
ImGui::SameLine();