fixed issue with new button welcome window

This commit is contained in:
2025-11-23 02:55:48 -05:00
parent 009b285baa
commit d1e0b14561
4 changed files with 7 additions and 5 deletions

View File

@@ -389,7 +389,8 @@ namespace anm2ed::imgui
ImGui::SeparatorText("Autosave");
ImGui::Checkbox("Enabled", &editSettings.fileIsAutosave);
ImGui::SetItemTooltip("Enables autosaving of documents.");
ImGui::SetItemTooltip(
"Enables autosaving of documents.\n(Does not overwrite files; makes copies to restore later.)");
ImGui::BeginDisabled(!editSettings.fileIsAutosave);
input_int_range("Time (minutes)", editSettings.fileAutosaveTime, 0, 10);
@@ -397,7 +398,7 @@ namespace anm2ed::imgui
ImGui::EndDisabled();
ImGui::SeparatorText("Snapshots");
input_int_range("Stack Size", editSettings.fileSnapshotStackSize, 0, 1000);
input_int_range("Stack Size", editSettings.fileSnapshotStackSize, 0, 100);
ImGui::SetItemTooltip("Set the maximum snapshot stack size of a document (i.e., how many undo/redos are "
"preserved at a time).");

View File

@@ -770,8 +770,7 @@ namespace anm2ed::imgui
if (mouseWheel != 0 || isZoomIn || isZoomOut)
{
auto previousZoom = zoom;
zoom_set(zoom, pan, mouseWheel != 0 ? vec2(mousePos) : vec2(),
(mouseWheel > 0 || isZoomIn) ? zoomStep : -zoomStep);
zoom_set(zoom, pan, vec2(mousePos), (mouseWheel > 0 || isZoomIn) ? zoomStep : -zoomStep);
if (zoom != previousZoom) hasPendingZoomPanAdjust = true;
}
}

View File

@@ -30,7 +30,7 @@ namespace anm2ed::imgui
auto widgetSize = widget_size_with_row_get(2);
if (ImGui::Button("New", widgetSize)) dialog.file_open(dialog::ANM2_NEW); // handled in taskbar.cpp
if (ImGui::Button("New", widgetSize)) dialog.file_save(dialog::ANM2_NEW); // handled in taskbar.cpp
ImGui::SameLine();
if (ImGui::Button("Open", widgetSize)) dialog.file_open(dialog::ANM2_OPEN); // handled in taskbar.cpp

View File

@@ -215,6 +215,8 @@ namespace anm2ed
continue;
}
SDL_FlashWindow(window, SDL_FLASH_UNTIL_FOCUSED);
auto paths = socket_paths_receive(client);
for (auto& path : paths)
{