mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix theme.get_border_image() is null
This commit is contained in:
@@ -68,6 +68,7 @@ let donateDummyApp = {
|
||||
get_id: () => 'dtp_donate',
|
||||
get_windows: () => [],
|
||||
can_open_new_window: () => false,
|
||||
is_window_backed: () => false,
|
||||
launch_action: function (action) {
|
||||
action == 'opts' ? this.activate() : null
|
||||
},
|
||||
|
||||
@@ -248,7 +248,7 @@ export const DynamicTransparency = class {
|
||||
|
||||
try {
|
||||
let imageFile =
|
||||
theme.get_background_image() || theme.get_border_image().get_file()
|
||||
theme.get_background_image() || theme.get_border_image()?.get_file()
|
||||
|
||||
if (imageFile) {
|
||||
let imageBuf = GdkPixbuf.Pixbuf.new_from_file(imageFile.get_path())
|
||||
|
||||
Reference in New Issue
Block a user