Skip to content

Commit

Permalink
Use MiB & GiB (binary size) in Qube Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Aug 9, 2024
1 parent 4cb10e4 commit 867df5f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions qubesmanager/i18n/qubesmanager_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../ui_newappvmdlg.py" line="139"/>
<source> MB</source>
<source> MiB</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down Expand Up @@ -1468,7 +1468,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../ui_settingsdlg.py" line="915"/>
<source> MB</source>
<source> MiB</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions qubesmanager/i18n/qubesmanager_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../ui_newappvmdlg.py" line="139"/>
<source> MB</source>
<source> MiB</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down Expand Up @@ -1510,7 +1510,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../ui_settingsdlg.py" line="915"/>
<source> MB</source>
<source> MiB</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions qubesmanager/qvm_template_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Template(typing.NamedTuple):
'Name',
'Version',
'Repository',
'Download Size (MB)',
'Download Size (MiB)',
'Build',
'Install',
#'License',
Expand All @@ -64,7 +64,7 @@ def build(status, entry):
entry['name'],
'%s:%s-%s' % (entry['epoch'], entry['version'], entry['release']),
entry['reponame'],
int(entry['size']) // 1000000,
int(entry['size']) // 1048576,
buildtime,
installtime,
#entry['license'],
Expand Down
2 changes: 1 addition & 1 deletion ui/newappvmdlg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<string>(default)</string>
</property>
<property name="suffix">
<string> MB</string>
<string> MiB</string>
</property>
<property name="maximum">
<number>90000000</number>
Expand Down
8 changes: 4 additions & 4 deletions ui/settingsdlg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,13 @@ border-width: 1px;</string>
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="suffix">
<string> MB</string>
<string> MiB</string>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>10000000</number>
<number>10485760</number>
</property>
<property name="singleStep">
<number>50</number>
Expand Down Expand Up @@ -535,13 +535,13 @@ border-width: 1px;</string>
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="suffix">
<string> MB</string>
<string> MiB</string>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>1000000</number>
<number>1048576</number>
</property>
<property name="singleStep">
<number>50</number>
Expand Down

0 comments on commit 867df5f

Please sign in to comment.