Skip to content

Commit

Permalink
2.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Caesar008 committed Mar 4, 2024
1 parent dba8bf2 commit f301d43
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 deletions.
5 changes: 4 additions & 1 deletion Ticketník/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ namespace Ticketník
{
/*interní changelog 2.1.0.0
- Opravena chyba #24-001
- Opravena chyba #24-002
- Opravena chyba #24-003
- Opravena chyba #23-006
- Odstraněn autosave
*/

Expand All @@ -26,7 +29,7 @@ public partial class Form1 : Form
internal bool devtest = false;

internal readonly int saveFileVersion = 10101, langVersion = 8;
internal readonly int program = 2000004;
internal readonly int program = 2010000;
string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
internal string jmenoSouboru = "";
internal string zakaznik = "";
Expand Down
15 changes: 10 additions & 5 deletions Ticketník/MyTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Net.Http;
using System.Drawing.Imaging;
using System.Linq;
using System.Diagnostics;

namespace Ticketník
{
Expand Down Expand Up @@ -474,12 +475,16 @@ public void UpdateTerpTaskFile()
terpFile.RootTag.Get<NbtCompound>("Custom").Get<NbtCompound>(label).Get<NbtCompound>("Tasks").Get<NbtCompound>(customTask.Label).Get<NbtList>("Types").Add(new NbtString(customType));
}
}
if (label != customTerp.Label)
if (terpFile.RootTag.Get<NbtCompound>("Custom").Get<NbtCompound>(label).Get<NbtString>("Label").Value != label)
toRename.Add(label, label);
if (label != customTerp.Label && !toRename.ContainsKey(label))
toRename.Add(label, customTerp.Label);
}
foreach(string s in toRename.Keys)
{
Logni("Přejmenovávám custom terp " + s + " na " + toRename[s], Form1.LogMessage.INFO);
terpFile.RootTag.Get<NbtCompound>("Custom").Get<NbtCompound>(s).Get<NbtString>("Label").Value = toRename[s];
terpFile.RootTag.Get<NbtCompound>("Custom").Get<NbtCompound>(s).Get<NbtString>("Name").Value = toRename[s].Remove(0, toRename[s].IndexOf(" - ")+3);
terpFile.RootTag.Get<NbtCompound>("Custom").Get<NbtCompound>(s).Name = toRename[s];
}
}
Expand Down Expand Up @@ -854,9 +859,9 @@ public void LoadTerptaskFile()
myterp.Tasks.Add(mytask);
}

if (!Terpy.ContainsKey(mtt.Get<NbtString>("Label").Value))
if (!Terpy.ContainsKey(mtt.Get<NbtString>("Label").Value) && (TerpFileUpdate == myterp.LastUpdate || myterp.LastUpdate == 0) )
Terpy.Add(myterp.Label, myterp);
else
else if(TerpFileUpdate == myterp.LastUpdate || myterp.LastUpdate == 0)
Terpy[myterp.Label] = myterp;
}
}
Expand All @@ -879,9 +884,9 @@ public void LoadTerptaskFile()
myterp.Tasks.Add(mytask);
}

if (!Terpy.ContainsKey(customTerpy.Get<NbtString>("Label").Value))
if (!Terpy.ContainsKey(customTerpy.Get<NbtString>("Label").Value) && (TerpFileUpdate == myterp.LastUpdate || myterp.LastUpdate == 0))
Terpy.Add(myterp.Label, myterp);
else
else if(TerpFileUpdate == myterp.LastUpdate || myterp.LastUpdate == 0)
Terpy[myterp.Label] = myterp;
}
}
Expand Down
8 changes: 8 additions & 0 deletions Ticketník/bin/Release/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2.1.0.0 (4.3.2024)

- Opravena chyba #24-001
- Opravena chyba #24-002
- Opravena chyba #24-003
- Opravena chyba #23-006
- Odstraněn autosave
-----------------------------------
2.0.0.4 (7.12.2023)

- Opravena chyba při exportu zabraňující kontrolu, zda se všechno nahrálo
Expand Down
Binary file modified Ticketník/bin/Release/Ticketnik.exe
Binary file not shown.
21 changes: 12 additions & 9 deletions Ticketník/bin/Release/known_errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ AKTUÁLNĚ ZNÁMÉ CHYBY
#23-005 5.10.2023 (2.0.0.0)
- Při ruční změně data nebo času v prvku DateTimePicker může za určitých podmínek dojít k pádu

#23-006 16.10.2023
- Při zapnutém autosavu může program spadnou kvůli tomu, že .tic je používán jiným procesem

#23-007 16.10.2023
- ListView se seznamem ticketů občas ztratí barvy.

#24-001 5.2.2024
- Ticketník spadne kvůli prázdnému souboru "upozorneni"

#24-002 1.3.2024
- Při updatu jména terpu se neupdatují všechny záznamy v seznamu a mohou se zobrazovat duplikátní nebo staré záznamy

---------
UPDATER
---------
Expand Down Expand Up @@ -200,6 +191,18 @@ OPRAVENÉ CHYBY
#23-004 22.9.2023 1.1.0.11 - Opraveno 5.10.2023 (2.0.0.0)
- Export failuje v případě, že některý řádek exportu má přesně 240 znaků

#23-006 16.10.2023 - Opraveno 4.3.2024 (2.1.0.0)
- Při zapnutém autosavu může program spadnou kvůli tomu, že .tic je používán jiným procesem

#24-001 5.2.2024 - Opraveno 4.3.2024 (2.1.0.0)
- Ticketník spadne kvůli prázdnému souboru "upozorneni"

#24-002 1.3.2024 - Opraveno 4.3.2024 (2.1.0.0)
- Při updatu jména terpu se neupdatují všechny záznamy v seznamu a mohou se zobrazovat duplikátní nebo staré záznamy

#24-003 4.3.2024 - Opraveno 4.3.2024 (2.1.0.0)
- Za určitých podmínek se při výběru zákazníka v okne úpravy ticketu neupravuje nebo nezobrazuje TERP

---------
UPDATER
---------
Expand Down
2 changes: 1 addition & 1 deletion Ticketník/bin/Release/ticketnik.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Ticketnik>
<Zakosi>52</Zakosi>
<App>2000004</App>
<App>2010000</App>
<Help>8</Help>
<Lang>
<CZ>8.0</CZ>
Expand Down

0 comments on commit f301d43

Please sign in to comment.