File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,17 @@ def __init__(self) -> None:
43
43
44
44
self .toolbar = iface .addToolBar ("ARHO Toolbar" )
45
45
self .toolbar .setToolButtonStyle (Qt .ToolButtonTextBesideIcon )
46
- self .check_timezone_variable ()
47
46
48
47
def check_timezone_variable (self ):
49
48
"""Check if PGTZ environment variable is correctly set."""
50
49
51
50
if os .environ .get ("PGTZ" ) != "Europe/Helsinki" :
52
51
iface .messageBar ().pushWarning (
53
52
"Varoitus" ,
54
- "Ympäristömuuttuja PGTZ ei ole asetettu arvoon 'Europe/Helsinki'.\n "
55
- "Tämä voi johtaa väärään aikavyöhykkeeseen tallennettuihin kellonaikoihin." ,
53
+ (
54
+ "Ympäristömuuttuja PGTZ ei ole asetettu arvoon 'Europe/Helsinki'."
55
+ "Tämä voi johtaa väärään aikavyöhykkeeseen tallennettuihin kellonaikoihin."
56
+ ),
56
57
)
57
58
58
59
def add_action (
@@ -251,6 +252,8 @@ def initGui(self) -> None: # noqa N802
251
252
lambda : self .identify_plan_features_action .setChecked (False )
252
253
)
253
254
255
+ self .check_timezone_variable ()
256
+
254
257
def toggle_dock_visibility (self , dock_widget : QgsDockWidget ):
255
258
if dock_widget .isUserVisible ():
256
259
dock_widget .hide ()
You can’t perform that action at this time.
0 commit comments