- working to differentiate between temporary units change and permanent units change

This commit is contained in:
Marius Stanciu
2021-09-27 17:28:54 +03:00
committed by Marius
parent 89426e8ac3
commit 3fc0ab826f
50 changed files with 185 additions and 186 deletions

View File

@@ -110,7 +110,7 @@ class ToolCalculator(AppTool):
AppTool.install(self, icon, separator, shortcut='Alt+C', **kwargs)
def set_tool_ui(self):
self.units = self.app.defaults['units'].lower()
self.units = self.app.app_units.lower()
self.clear_ui(self.layout)
self.ui = CalcUI(layout=self.layout, app=self.app)
@@ -513,7 +513,7 @@ class CalcUI:
self.app = app
self.decimals = self.app.decimals
self.layout = layout
self.units = self.app.defaults['units'].lower()
self.units = self.app.app_units.lower()
# ## Title
title_label = FCLabel("%s" % self.pluginName)