Skip to content

Commit cca45d3

Browse files
authored
feat: 3.13.0 (#242)
1 parent 5320fa5 commit cca45d3

11 files changed

Lines changed: 51 additions & 20 deletions

data/dev.geopjr.Collision.metainfo.xml.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
<color type="primary" scheme_preference="dark">#26a269</color>
4949
</branding>
5050
<releases>
51+
<release version="3.13.0" date="2026-01-19">
52+
<description translate="no">
53+
<ul>
54+
<li>Added a beautiful drop overlay when drag and dropping files</li>
55+
<li>Fixed issues with the checksum text input</li>
56+
<li>Title will be hidden now when unused</li>
57+
<li>Files pending to be hashed will now reflect that in the progress bar</li>
58+
<li>Collision will now gracefully handle closing windows that have pending operations</li>
59+
</ul>
60+
</description>
61+
</release>
5162
<release version="3.12.1" date="2026-01-14">
5263
<description translate="no">
5364
<ul>

data/screenshots/screenshot-1.png

Lines changed: 2 additions & 2 deletions
Loading

data/screenshots/screenshot-2.png

Lines changed: 2 additions & 2 deletions
Loading

data/screenshots/screenshot-3.png

Lines changed: 2 additions & 2 deletions
Loading

data/screenshots/screenshot-4.png

Lines changed: 2 additions & 2 deletions
Loading

data/ui/application.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
</child>
6565
<child type="top">
6666
<object class="AdwHeaderBar" id="header_bar">
67+
<property name="show-title">0</property>
6768
<child type="start">
6869
<object class="GtkButton" id="openFileBtn">
6970
<property name="visible">False</property>
@@ -81,10 +82,9 @@
8182
</object>
8283
</child>
8384
<property name="title-widget">
84-
<object class="AdwViewSwitcher" id="headerbarViewSwitcher">
85+
<object class="AdwViewSwitcher">
8586
<property name="policy">wide</property>
8687
<property name="stack">resultsStack</property>
87-
<property name="visible">0</property>
8888
</object>
8989
</property>
9090
<child type="end">

po/dev.geopjr.Collision.pot

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,13 @@ msgstr ""
184184
#: src/collision/functions/feedback.cr:204
185185
msgid "They Don't Match"
186186
msgstr ""
187+
188+
#. Text on top of the progressbar when waiting for a different window to finish first
189+
#: src/window.cr:164 data/ui/application.ui:152
190+
msgid "Pending"
191+
msgstr ""
192+
193+
#. translators: overlay shown when dragging files above it
194+
#: data/ui/application.ui:48
195+
msgid "Drop to hash"
196+
msgstr ""

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: collision
2-
version: 3.12.1
2+
version: 3.13.0
33

44
authors:
55
- GeopJr <evan@geopjr.dev>

spec/hash_generator_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe Collision::Checksum do
66
path = Path["./spec/test.txt"].expand(home: true)
77
hashes = Hash(Symbol, String).new
88
channel = Channel(Hash(String, String)).new
9-
mt_context = Fiber::ExecutionContext::Parallel.new("worker-threads", 8)
9+
mt_context = {{ Fiber::ExecutionContext.has_constant?(:Parallel) ? Fiber::ExecutionContext::Parallel : Fiber::ExecutionContext::MultiThreaded }}.new("worker-threads", 8)
1010

1111
Collision::CLIPBOARD_HASH.keys.each do |x|
1212
hashes[x] = ""

src/collision/functions/checksum.cr

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@ module Collision
2222
end
2323

2424
class Checksum
25-
@mt_context : Fiber::ExecutionContext::Parallel = Fiber::ExecutionContext::Parallel.new("worker-threads", 8)
26-
@s_context = Fiber::ExecutionContext::Concurrent.new("channel-receiver")
25+
{% if Fiber::ExecutionContext.has_constant?(:Parallel) %}
26+
@mt_context : Fiber::ExecutionContext::Parallel = Fiber::ExecutionContext::Parallel.new("worker-threads", 8)
27+
{% else %}
28+
@mt_context : Fiber::ExecutionContext::MultiThreaded = Fiber::ExecutionContext::MultiThreaded.new("worker-threads", 8)
29+
{% end %}
30+
31+
{% if Fiber::ExecutionContext.has_constant?(:Concurrent) %}
32+
@s_context = Fiber::ExecutionContext::Concurrent.new("channel-receiver")
33+
{% else %}
34+
@s_context = Fiber::ExecutionContext::SingleThreaded.new("channel-receiver")
35+
{% end %}
2736

2837
def calculate(type : Symbol, filename : String) : String
2938
hash =

0 commit comments

Comments
 (0)