Compare commits
No commits in common. "dd460b4313697cf73c2ace0f7032dbb41b03abdc" and "8fedbdd4e5025867618c2a471528c5a96dbf18d1" have entirely different histories.
dd460b4313
...
8fedbdd4e5
2 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ auto MassManager::importMass(const std::string& staged_fn, int hangar) -> bool {
|
||||||
Utility::Directory::rm(_hangars[hangar].filename());
|
Utility::Directory::rm(_hangars[hangar].filename());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!Utility::Directory::move(source + ".tmp", Utility::Directory::join(_saveDirectory, _hangars[hangar].filename()))) {
|
if(!Utility::Directory::move(source + ".tmp", _hangars[hangar].filename())) {
|
||||||
_lastError = Utility::formatString("Couldn't move {} to hangar {:.2d}", staged_fn, hangar + 1);
|
_lastError = Utility::formatString("Couldn't move {} to hangar {:.2d}", staged_fn, hangar + 1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,8 +107,8 @@ auto SaveTool::drawIntEditPopup(int* value_to_edit, int max) -> bool {
|
||||||
drawHelpMarker("You can either drag the widget left or right to change the value,\n"
|
drawHelpMarker("You can either drag the widget left or right to change the value,\n"
|
||||||
"or click on it while holding Ctrl to edit the value directly.");
|
"or click on it while holding Ctrl to edit the value directly.");
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
drawUnsafeWidget([](auto... args){ return ImGui::SliderInt("", args...); },
|
drawUnsafeWidget([](auto... args){ return ImGui::DragInt("", args...); },
|
||||||
value_to_edit, 0, max, "%d", ImGuiSliderFlags_AlwaysClamp);
|
value_to_edit, 1.0f, 0, max, "%d", ImGuiSliderFlags_AlwaysClamp);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if(drawUnsafeWidget([]{ return ImGui::Button("Apply"); })) {
|
if(drawUnsafeWidget([]{ return ImGui::Button("Apply"); })) {
|
||||||
apply = true;
|
apply = true;
|
||||||
|
|
Loading…
Reference in a new issue