Skip to content

Commit

Permalink
fix: workspace size being set incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofixrs committed Aug 5, 2024
1 parent f634f19 commit 185cdce
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.8.2)

project(SMLayoutEditor-ConfigGen VERSION 0.0.1 LANGUAGES CXX)
project(SMLayoutEditor-ConfigGen VERSION 1.0.1 LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)


Expand Down
2 changes: 1 addition & 1 deletion flatpak/io.github.tofixrs.sm_layout_editor.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Desktop Entry]
Version=1.0.0
Version=1.0.1
Type=Application

Name=Scrap Mechanic Layout Editor
Expand Down
2 changes: 1 addition & 1 deletion flatpak/io.github.tofixrs.sm_layout_editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"dest-filename": "sm-gui-launcher",
"commands": [
"message=$(/app/bin/SMLayoutEditor-ConfigGen 2>&1)",
"if [ $message != \"\" ]; then zenity --error --text=\"$message\" --title=\"Failed to launch sm-gui-editor\"; fi",
"if [[ $message != \"\" ]; then zenity --error --text=\"$message\" --title=\"Failed to launch sm-gui-editor\"; fi",
"cd /app/share/MYGUI",
"LayoutEditor"
]
Expand Down
2 changes: 1 addition & 1 deletion parts/pkgs/configGen.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}:
stdenv.mkDerivation rec {
pname = "SMLayoutEditor-ConfigGen";
version = "0.0.3";
version = "1.0.1";
src = ../../.;
nativeBuildInputs = with pkgs; [cmake pkg-config];
buildInputs = with pkgs; [tinyxml-2];
Expand Down
2 changes: 1 addition & 1 deletion parts/pkgs/launcher.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ self': {
in
stdenvNoCC.mkDerivation {
pname = "SM-GuiEditor";
version = "1.0.0";
version = "1.0.1";
phases = ["installPhase"];
installPhase = ''
mkdir -p "$out/bin"
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int main() {

XMLElement *settingsInside = settings.NewElement("Settings");
XMLElement *workspaceSize = settings.NewElement("WorkspaceTextureSize");
workspaceSize->SetValue("1920 1080");
workspaceSize->SetText("1920 1080");
settingsInside->InsertEndChild(workspaceSize);
pRoot->InsertEndChild(settingsInside);

Expand Down

0 comments on commit 185cdce

Please sign in to comment.