Compare commits
No commits in common. "master" and "3.0.1" have entirely different histories.
3
build.sh
3
build.sh
|
@ -4,7 +4,7 @@ if [ -d unpack ]; then
|
|||
sudo rm -rf unpack
|
||||
fi
|
||||
|
||||
version="3.0.6"
|
||||
version="3.0.1"
|
||||
|
||||
mkdir -p unpack/DEBIAN
|
||||
|
||||
|
@ -26,7 +26,6 @@ sed -i "s/{{size}}/${_size}/" DEBIAN/control
|
|||
sed -i "s/{{version}}/${version}/" DEBIAN/control
|
||||
|
||||
cd ..
|
||||
sudo chown -R root:root unpack/
|
||||
dpkg-deb -b unpack/ "hosts-switch-${version}.deb"
|
||||
|
||||
sudo rm -rf unpack
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/share/hosts-switch/hosts-switch.py
|
||||
/usr/lib/hosts-switch/hosts-switch.py
|
|
@ -11,9 +11,6 @@ class Window(Gtk.Window):
|
|||
Gtk.Window.__init__(self, title = title)
|
||||
self.set_default_size(width, height)
|
||||
self.resize(width, height)
|
||||
self.set_wmclass('Hosts-Switch', 'Hosts-Switch')
|
||||
self.set_title('Hosts-Switch')
|
||||
self.set_icon_name('hosts-switch')
|
||||
|
||||
|
||||
def toggle_visible(self, icon):
|
|
@ -13,12 +13,8 @@ APP_ID = 'fun.wkit.hosts-switch'
|
|||
__dir__ = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
web_root = os.path.join(__dir__, './webapp')
|
||||
home_dir = os.getenv('HOME')
|
||||
config_dir = os.path.join(home_dir, '.config/hosts-switch')
|
||||
|
||||
|
||||
if not os.path.isdir(config_dir):
|
||||
os.mkdir(config_dir)
|
||||
|
||||
|
||||
class Application(Gtk.Application):
|
|
@ -101,7 +101,7 @@ class Sidebar extends Component {
|
|||
|
||||
toggleDomain(ev, name) {
|
||||
let { HOST_DATA, records } = this.$store
|
||||
name = name ?? ev.currentTarget.dataset.name
|
||||
name = name || ev.currentTarget.dataset.name
|
||||
this.$store.activeDomain = name
|
||||
|
||||
this.$store.records = records = (HOST_DATA[name] || []).sort((a, b) =>
|
Loading…
Reference in New Issue