From 6b85d365675dace1ac2b2dcec0dd504853ebff8d Mon Sep 17 00:00:00 2001 From: Avius Date: Tue, 25 Jul 2017 18:24:02 +0200 Subject: [PATCH] hotfix - fixed "empty news" bug --- Assemblies/PrisonLabor.dll | Bin 99328 -> 99328 bytes Source/Initialization.cs | 3 +++ Source/NewsDialog.cs | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Assemblies/PrisonLabor.dll b/Assemblies/PrisonLabor.dll index 326b727fdb2eb11061a5b250f205e5675942270a..a9e7d7abf32080c97207a69a2642ff71cb37882a 100644 GIT binary patch delta 3546 zcmZ9P4^Wj=8pfaV0asuF0ZA?(l>si<4Tv>mH$*dL#lnf1AZs#p$DAeB4P;$s1>(c7 zqJ|9o{6pp@TBEd!Wql@Sl$SsEa$)7q+61_lour&ua%k7w-LY|~_PpmD_v3>ZEeJudJN1AXQ3Zw*0+>;T+< z2iU=dRcx7ApsifE?#WP;-38Q~FC7Fz5mKK0lUW0ggv}Z#37<8vB4XCS#}UT)l*L9= z@;c2u*Ekv97)U6uFt0Cuc@AqgDl%R1pUQYtXjE9Kiy^e~=e!4+)@8Ue(<0irotnqT zkEJA(d(G+0_k&r#+4?{di}???=Fd-c0QW$vTFDnLcNt%0=igQshqCI$w3fkNO84=X z@@LH4<;9F`H&5p531EAT>{W}{8DsORy|+#Bbn0oIsaegJNHr-PZH7Knm*&ECzT-KdO$dnjH^+rv*QgAcBF$>uctl7uWuSu`%P^qjxL}U4XLK z)T_iOq%t!tT||15ar4n{S-m+`P#?7Y6I#XXyqJ0BPd7#|cE((~=|C{MZVVLHu`u)TXWtIs8+CIl3t(H# z>C)AV9Wrybxiog%-1fWu8oOv@?MyT8-=PJFU#r=a*|zh9#$4vcsvkAB%GjvyVNaO< z)bk?Q4s%(Pu^%p3*3%?B@^BbWiLjIjS7V5@-rDA8ZW_p>+7xUz_ z^0uVAoo?jT(kc_|czO=^@`aLkH?}H|@SSK?itwE%d{MXXo!IuGSVrJGZFtKgd?%`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`D1O&;j`!N|mPvRoresv$y;ygg%E-&+MX68{??sLBXnG%dlp?$jXMb+teQ*m! zS6%lxeKx#h65fYV85MXR7PVM-AM%8fcpo+@kMKiiR*LXLD0|n!58+jz#G9r&hirJu zB>WH>WK`gXa8oJT{2`R5QBlGZ@C)J9V>2s{v3r-{JVD8N6tf%Qm*HxasztjIZk%?- z>NqJEE@%#1MZQwYLX)^^RH~NW+N-!Pl$`jg?PVLr+*4E~$Y|nWTsbXN8>^WS zTQlV8(xh%iP%NXOnGqaPikcZgvrrN^Vgrt%QzdEoQJieEfTK2`ZbZEc9=*`NT9 zVyew3bSKT67SGosoew&ScZ_ZB1*s$NQ_XtR^JDuX9w;>{^p^7@q#Ebk$!vjf*}Xt7 z{6OaJ;70hEZ3C~NLV2`-*U&ALoaY)Qg_3XYI8x406}f@qC_PU~{w5nol~6%(w&S+x zxThYTtj85Q^mv>4HzWc`#_lb2`$hubMHo8VaW7mAwjqg{A%5B$jLkd^61`)yduqoMuC zl}SPMqedwj+K+PMj3-*(C)VmQoBfN|diX`Yj$bG*k9*f~K`7bZC-AFU)L#J3PSKHg z;{uqzNJ^ej0Eu0)+l>695dmAb+|!jw?FNu86>G}5?+jp%Qq*n$bwWvez_vY;IH8hs zhY&9UhMR`A%5unoKL5;kLd$BJcaOTsMR zJ1hVF!P4cYR(0LpH&$EK{;Q78=b1Aj`lk9%j;d+LKCNcS+SKumd(|vnGYVO3M@%id S7ox>~yCd#3_IK8_DExm)z3LnQ diff --git a/Source/Initialization.cs b/Source/Initialization.cs index 8cc7f074..1ae5fc3e 100644 --- a/Source/Initialization.cs +++ b/Source/Initialization.cs @@ -48,16 +48,19 @@ private static void checkVersion() { Log.Message("Detected older version of PrisonLabor than 0.5"); NewsDialog.news_0_5 = true; + NewsDialog.autoShow = true; } if (PrisonLaborPrefs.LastVersion < 6) { Log.Message("Detected older version of PrisonLabor than 0.6"); NewsDialog.news_0_6 = true; + NewsDialog.autoShow = true; } if (PrisonLaborPrefs.LastVersion < 7) { Log.Message("Detected older version of PrisonLabor than 0.7"); NewsDialog.news_0_7 = true; + NewsDialog.autoShow = true; } Log.Message("Loaded PrisonLabor v" + PrisonLaborPrefs.Version); diff --git a/Source/NewsDialog.cs b/Source/NewsDialog.cs index e965f910..ee9ea252 100644 --- a/Source/NewsDialog.cs +++ b/Source/NewsDialog.cs @@ -9,7 +9,7 @@ namespace PrisonLabor { class NewsDialog : Window { - private static bool autoShow = true; + public static bool autoShow = false; public static bool showAll = false;