def on_main_view_change(self, main_view: Gtk.Stack, somearg):
from cloneentry import CloneToImageEntry
from restoreentry import RestoreFromImageEntry
current_view = main_view.get_visible_child()
if not self.is_mounted():
self.clone_button.set_sensitive(type(current_view) is not CloneToImageEntry)
self.restore_button.set_sensitive(type(current_view) is not RestoreFromImageEntry)
评论列表
文章目录