mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-07-06 04:38:21 +02:00
picon name update after service edit
This commit is contained in:
@@ -77,7 +77,7 @@ class DownloadDialog:
|
||||
if download:
|
||||
download_data(properties=self._properties, download_type=d_type)
|
||||
else:
|
||||
self.show_info_message("Please, wait...", Gtk.MessageType.INFO)
|
||||
self.show_info_message(get_message("Please, wait..."), Gtk.MessageType.INFO)
|
||||
upload_data(properties=self._properties,
|
||||
download_type=d_type,
|
||||
remove_unused=self._remove_unused_check_button.get_active(),
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import re
|
||||
|
||||
import os
|
||||
|
||||
from app.commons import run_idle
|
||||
from app.eparser import Service, get_satellites
|
||||
from app.eparser.ecommons import MODULATION, Inversion, ROLL_OFF, Pilot, Flag, Pids, POLARIZATION, \
|
||||
@@ -348,9 +350,12 @@ class ServiceDetailsDialog:
|
||||
bq[i] = fav_id
|
||||
|
||||
def update_picon_name(self, old_name, new_name):
|
||||
pass
|
||||
# for file in os.listdir(self._picons_dir_path):
|
||||
# os.rename(old_name, file.replace(old_name, new_name))
|
||||
for file_name in os.listdir(self._picons_dir_path):
|
||||
if file_name == old_name:
|
||||
old_file = os.path.join(self._picons_dir_path, old_name)
|
||||
new_file = os.path.join(self._picons_dir_path, new_name)
|
||||
os.rename(old_file, new_file)
|
||||
break
|
||||
|
||||
def on_new(self):
|
||||
service = self.get_service(*self.get_srv_data(), self.get_transponder_data())
|
||||
|
||||
Reference in New Issue
Block a user