Skip to content

Commit e515478

Browse files
committed
v0.2.65: Fix version bug, disable ImGui status bar on Windows
1 parent 3d144c5 commit e515478

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

imgui.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Window][Editor]
22
Pos=0,0
3-
Size=1219,700
3+
Size=1196,668
44
Collapsed=0
55

66
[Window][DockSpace]

pcode-settings.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"window_w": 1219,
3-
"window_h": 700,
2+
"window_w": 1196,
3+
"window_h": 668,
44
"dark_theme": true,
5-
"show_status_bar": false,
5+
"show_status_bar": true,
66
"word_wrap": true,
77
"show_line_numbers": true,
88
"show_minimap": true,
@@ -12,6 +12,6 @@
1212
"tab_size": 4,
1313
"font_size": 18,
1414
"font_name": "",
15-
"last_open_dir": ".",
16-
"recent_files": [".\\BUILD_SYSTEM.md", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.cpp", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.h"]
17-
}
15+
"last_open_dir": "C:\\Users\\casse\\github\\pcode-editor\\src",
16+
"recent_files": ["C:\\Users\\casse\\github\\pcode-editor\\src\\main.cpp", ".\\BUILD_SYSTEM.md", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.cpp", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.h"]
17+
}

src/editor_app.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ std::string EditorApp::get_version() {
175175
} else {
176176
version = "BUG-merang!!!"; // fallback if VERSION file missing
177177
}
178-
return "pCode Editor version 0.2.62 (4ffe079)" + version;
178+
return "pCode Editor version " + version;
179179
}
180180

181181
// ============================================================================
@@ -2372,6 +2372,8 @@ void EditorApp::render_editor_area() {
23722372

23732373
ImGui::EndChild();
23742374

2375+
// Old ImGui status bar - DISABLED, using native Windows status bar instead
2376+
#ifndef _WIN32
23752377
if (settings_.show_status_bar) {
23762378
// Render status bar AFTER EditorContent so it appears on top
23772379
ImGui::SetCursorPos(ImVec2(0, editor_area_height));
@@ -2412,6 +2414,7 @@ void EditorApp::render_editor_area() {
24122414

24132415
ImGui::PopStyleVar();
24142416
}
2417+
#endif // Disabled - using native Windows status bar instead
24152418
}
24162419

24172420
void EditorApp::render_editor_with_margins() {
@@ -3070,7 +3073,7 @@ void EditorApp::render_status_bar() {
30703073
ImGui::SameLine();
30713074

30723075
// Version with git hash
3073-
ImGui::Text("v0.2.37");
3076+
ImGui::Text("%s", get_version().c_str());
30743077
}
30753078

30763079
ImGui::PopStyleColor();

0 commit comments

Comments
 (0)