Detect and check unar and lsar runnability.

This commit is contained in:
2017-04-20 21:20:37 +01:00
parent 5512243bfd
commit eb43fe7e05
8 changed files with 249 additions and 27 deletions

View File

@@ -26,10 +26,10 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
using System;
using System.Collections.Generic;
using System.Threading;
using Gtk;
using osrepodbmgr;
using System.Collections.Generic;
public partial class MainWindow : Window
{
@@ -48,6 +48,9 @@ public partial class MainWindow : Window
Core.InitDB();
MainClass.UnarChangeStatus += UnarChangeStatus;
MainClass.CheckUnar();
CellRendererText filenameCell = new CellRendererText();
CellRendererText hashCell = new CellRendererText();
CellRendererToggle dbCell = new CellRendererToggle();
@@ -64,6 +67,14 @@ public partial class MainWindow : Window
treeFiles.AppendColumn(dbColumn);
}
void UnarChangeStatus()
{
Application.Invoke(delegate
{
btnArchive.Sensitive = MainClass.unarUsable;
});
}
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
if(btnStop.Visible)