fixed issue with new button welcome window
This commit is contained in:
@@ -389,7 +389,8 @@ namespace anm2ed::imgui
|
|||||||
ImGui::SeparatorText("Autosave");
|
ImGui::SeparatorText("Autosave");
|
||||||
|
|
||||||
ImGui::Checkbox("Enabled", &editSettings.fileIsAutosave);
|
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);
|
ImGui::BeginDisabled(!editSettings.fileIsAutosave);
|
||||||
input_int_range("Time (minutes)", editSettings.fileAutosaveTime, 0, 10);
|
input_int_range("Time (minutes)", editSettings.fileAutosaveTime, 0, 10);
|
||||||
@@ -397,7 +398,7 @@ namespace anm2ed::imgui
|
|||||||
ImGui::EndDisabled();
|
ImGui::EndDisabled();
|
||||||
|
|
||||||
ImGui::SeparatorText("Snapshots");
|
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 "
|
ImGui::SetItemTooltip("Set the maximum snapshot stack size of a document (i.e., how many undo/redos are "
|
||||||
"preserved at a time).");
|
"preserved at a time).");
|
||||||
|
|
||||||
|
|||||||
@@ -770,8 +770,7 @@ namespace anm2ed::imgui
|
|||||||
if (mouseWheel != 0 || isZoomIn || isZoomOut)
|
if (mouseWheel != 0 || isZoomIn || isZoomOut)
|
||||||
{
|
{
|
||||||
auto previousZoom = zoom;
|
auto previousZoom = zoom;
|
||||||
zoom_set(zoom, pan, mouseWheel != 0 ? vec2(mousePos) : vec2(),
|
zoom_set(zoom, pan, vec2(mousePos), (mouseWheel > 0 || isZoomIn) ? zoomStep : -zoomStep);
|
||||||
(mouseWheel > 0 || isZoomIn) ? zoomStep : -zoomStep);
|
|
||||||
if (zoom != previousZoom) hasPendingZoomPanAdjust = true;
|
if (zoom != previousZoom) hasPendingZoomPanAdjust = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace anm2ed::imgui
|
|||||||
|
|
||||||
auto widgetSize = widget_size_with_row_get(2);
|
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();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("Open", widgetSize)) dialog.file_open(dialog::ANM2_OPEN); // handled in taskbar.cpp
|
if (ImGui::Button("Open", widgetSize)) dialog.file_open(dialog::ANM2_OPEN); // handled in taskbar.cpp
|
||||||
|
|
||||||
|
|||||||
@@ -215,6 +215,8 @@ namespace anm2ed
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_FlashWindow(window, SDL_FLASH_UNTIL_FOCUSED);
|
||||||
|
|
||||||
auto paths = socket_paths_receive(client);
|
auto paths = socket_paths_receive(client);
|
||||||
for (auto& path : paths)
|
for (auto& path : paths)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user