1
1
--[[
2
2
This file is part of darktable,
3
- copyright (c) 2018, 2020 Bill Ferguson <[email protected] >
3
+ copyright (c) 2018, 2020, 2023 Bill Ferguson <[email protected] >
4
4
5
5
darktable is free software: you can redistribute it and/or modify
6
6
it under the terms of the GNU General Public License as published by
@@ -289,7 +289,6 @@ local function get_repo_branches(repo)
289
289
return branches
290
290
end
291
291
292
-
293
292
local function is_repo_clean (repo_data )
294
293
local old_log_level = set_log_level (sm .log_level )
295
294
if string.match (repo_data , " \n %s-%a.-%a:%s-%a%g-\n " ) then
@@ -309,6 +308,10 @@ local function checkout_repo_branch(repo, branch)
309
308
restore_log_level (old_log_level )
310
309
end
311
310
311
+ ---- ----------------
312
+ -- utility functions
313
+ ---- ----------------
314
+
312
315
local function update_combobox_choices (combobox , choice_table , selected )
313
316
local old_log_level = set_log_level (sm .log_level )
314
317
local items = # combobox
@@ -341,6 +344,10 @@ local function string_dequote(str)
341
344
return string.gsub (str , " ['\" ]" , " " )
342
345
end
343
346
347
+ ---- --------------
348
+ -- script handling
349
+ ---- --------------
350
+
344
351
local function add_script_category (category )
345
352
local old_log_level = set_log_level (sm .log_level )
346
353
if # sm .categories == 0 or not string.match (du .join (sm .categories , " " ), ds .sanitize_lua (category )) then
@@ -555,6 +562,10 @@ local function update_scripts()
555
562
return result
556
563
end
557
564
565
+ ---- ----------
566
+ -- UI handling
567
+ ---- ----------
568
+
558
569
local function update_script_update_choices ()
559
570
local old_log_level = set_log_level (sm .log_level )
560
571
local installs = {}
@@ -678,7 +689,7 @@ local function clear_button(number)
678
689
button .label = " "
679
690
button .tooltip = " "
680
691
button .sensitive = false
681
- -- button.name = ""
692
+ -- button.name = ""
682
693
restore_log_level (old_log_level )
683
694
end
684
695
@@ -1235,6 +1246,7 @@ sm.widgets.main_box = dt.new_widget("box"){
1235
1246
}
1236
1247
1237
1248
script_manager_running_script = nil
1249
+
1238
1250
-- - - - - - - - - - - - - - - - - - - - - - - -
1239
1251
-- D A R K T A B L E I N T E G R A T I O N
1240
1252
-- - - - - - - - - - - - - - - - - - - - - - - -
0 commit comments